mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Followed style guide for model attribute ordering.
This commit is contained in:
@@ -80,13 +80,13 @@ class Chapter(models.Model):
|
||||
content = models.TextField()
|
||||
book = models.ForeignKey(Book, models.CASCADE)
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
|
||||
class Meta:
|
||||
# Use a utf-8 bytestring to ensure it works (see #11710)
|
||||
verbose_name = '¿Chapter?'
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
|
||||
|
||||
class ChapterXtra1(models.Model):
|
||||
chap = models.OneToOneField(Chapter, models.CASCADE, verbose_name='¿Chap?')
|
||||
|
||||
Reference in New Issue
Block a user