diff options
author | Jason Myers <jason@jasonamyers.com> | 2013-11-02 16:34:05 -0500 |
---|---|---|
committer | Jason Myers <jason@jasonamyers.com> | 2013-11-02 23:48:47 -0500 |
commit | c3791463a5a9674f8e0148fbab57eae23c138896 (patch) | |
tree | 6606acdb74132a344a49e910dec5d0356389a569 /tests/null_fk_ordering | |
parent | 2a03a9a9a1c4517be75e72899e545b0bc9dd0688 (diff) | |
download | django-c3791463a5a9674f8e0148fbab57eae23c138896.tar.gz |
Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
Diffstat (limited to 'tests/null_fk_ordering')
-rw-r--r-- | tests/null_fk_ordering/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/null_fk_ordering/models.py b/tests/null_fk_ordering/models.py index 3caff0d594..dac1c4f6ae 100644 --- a/tests/null_fk_ordering/models.py +++ b/tests/null_fk_ordering/models.py @@ -15,6 +15,7 @@ from django.utils.encoding import python_2_unicode_compatible class Author(models.Model): name = models.CharField(max_length=150) + @python_2_unicode_compatible class Article(models.Model): title = models.CharField(max_length=150) @@ -31,10 +32,12 @@ class Article(models.Model): class SystemInfo(models.Model): system_name = models.CharField(max_length=32) + class Forum(models.Model): system_info = models.ForeignKey(SystemInfo) forum_name = models.CharField(max_length=32) + @python_2_unicode_compatible class Post(models.Model): forum = models.ForeignKey(Forum, null=True) @@ -43,6 +46,7 @@ class Post(models.Model): def __str__(self): return self.title + @python_2_unicode_compatible class Comment(models.Model): post = models.ForeignKey(Post, null=True) |