mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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
|
@ -5,21 +5,26 @@ class Country(models.Model):
|
|||
name = models.CharField(max_length=255)
|
||||
iso_two_letter = models.CharField(max_length=2)
|
||||
|
||||
|
||||
class Place(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
|
||||
class Restaurant(Place):
|
||||
pass
|
||||
|
||||
|
||||
class Pizzeria(Restaurant):
|
||||
pass
|
||||
|
||||
|
||||
class State(models.Model):
|
||||
two_letter_code = models.CharField(max_length=2, primary_key=True)
|
||||
|
||||
|
||||
class TwoFields(models.Model):
|
||||
f1 = models.IntegerField(unique=True)
|
||||
f2 = models.IntegerField(unique=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue