mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
2a03a9a9a1
commit
c3791463a5
98 changed files with 748 additions and 96 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue