mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +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
|
@ -10,6 +10,7 @@ from django.utils.encoding import python_2_unicode_compatible
|
|||
class Question(models.Model):
|
||||
text = models.CharField(max_length=200)
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Answer(models.Model):
|
||||
text = models.CharField(max_length=200)
|
||||
|
@ -21,6 +22,7 @@ class Answer(models.Model):
|
|||
def __str__(self):
|
||||
return six.text_type(self.text)
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Post(models.Model):
|
||||
title = models.CharField(max_length=200)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue