mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Moved choices inside of test models per coding style.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user