mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user