summaryrefslogtreecommitdiff
path: root/tests/shared_models
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shared_models')
-rw-r--r--tests/shared_models/__init__.py0
-rw-r--r--tests/shared_models/models.py30
2 files changed, 0 insertions, 30 deletions
diff --git a/tests/shared_models/__init__.py b/tests/shared_models/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
--- a/tests/shared_models/__init__.py
+++ /dev/null
diff --git a/tests/shared_models/models.py b/tests/shared_models/models.py
deleted file mode 100644
index 61b3669bc4..0000000000
--- a/tests/shared_models/models.py
+++ /dev/null
@@ -1,30 +0,0 @@
-from django.db import models
-from django.utils import timezone
-from django.utils.encoding import python_2_unicode_compatible
-
-
-class Tag(models.Model):
- name = models.CharField(max_length=255)
-
-
-@python_2_unicode_compatible
-class Author(models.Model):
- name = models.CharField(max_length=100)
-
- def __str__(self):
- return self.name
-
-
-@python_2_unicode_compatible
-class Book(models.Model):
- name = models.CharField(max_length=200)
- pages = models.IntegerField(default=0)
- author = models.ForeignKey(Author, null=True)
- pubdate = models.DateTimeField()
- tags = models.ManyToManyField(Tag)
-
- class Meta:
- ordering = ['-pubdate', 'name']
-
- def __str__(self):
- return self.name