summaryrefslogtreecommitdiff
path: root/tests/shared_models/models.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2013-06-10 12:24:45 +0200
committerFlorian Apolloner <florian@apolloner.eu>2013-06-10 12:34:47 +0200
commitaf70dfcf317fd045df69917baca7bc0c58e2fd32 (patch)
treecd195bb3a9072367242870bcef1a876d95c5de2e /tests/shared_models/models.py
parentf5d4849cbeda994e7d2e43c4aaf2aac69d5c95bb (diff)
Reverted the introduction of shared_models.
The recent improvements should make shared_models obsolete. This reverts commit 1059da8de675442e84381d6366c0be254681753e, reversing changes made to 4fa7f3cdd9bcf50ec4c7f64a31c1dfc02c375f46.
Diffstat (limited to 'tests/shared_models/models.py')
-rw-r--r--tests/shared_models/models.py30
1 files changed, 0 insertions, 30 deletions
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