mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
PEP8 cleanup
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
0fdb692c6c
commit
7a61c68c50
128 changed files with 739 additions and 206 deletions
|
|
@ -12,6 +12,7 @@ class Part(models.Model):
|
|||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Car(models.Model):
|
||||
name = models.CharField(max_length=20)
|
||||
|
|
@ -24,9 +25,11 @@ class Car(models.Model):
|
|||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class SportsCar(Car):
|
||||
price = models.IntegerField()
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Person(models.Model):
|
||||
name = models.CharField(max_length=20)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue