mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +00:00
Moved choices inside of test models per coding style.
This commit is contained in:
parent
f0082b9a77
commit
3a4558b84f
4 changed files with 27 additions and 34 deletions
|
@ -632,19 +632,16 @@ class Reservation(models.Model):
|
|||
price = models.IntegerField()
|
||||
|
||||
|
||||
DRIVER_CHOICES = (
|
||||
('bill', 'Bill G'),
|
||||
('steve', 'Steve J'),
|
||||
)
|
||||
|
||||
RESTAURANT_CHOICES = (
|
||||
('indian', 'A Taste of India'),
|
||||
('thai', 'Thai Pography'),
|
||||
('pizza', 'Pizza Mama'),
|
||||
)
|
||||
|
||||
|
||||
class FoodDelivery(models.Model):
|
||||
DRIVER_CHOICES = (
|
||||
('bill', 'Bill G'),
|
||||
('steve', 'Steve J'),
|
||||
)
|
||||
RESTAURANT_CHOICES = (
|
||||
('indian', 'A Taste of India'),
|
||||
('thai', 'Thai Pography'),
|
||||
('pizza', 'Pizza Mama'),
|
||||
)
|
||||
reference = models.CharField(max_length=100)
|
||||
driver = models.CharField(max_length=100, choices=DRIVER_CHOICES, blank=True)
|
||||
restaurant = models.CharField(max_length=100, choices=RESTAURANT_CHOICES, blank=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue