search for: location_choices

Displaying 1 result from an estimated 1 matches for "location_choices".

2009 Dec 11
1
Multiple choices inside the model
Hi, I''m trying to define multiple choices inside the rails model. In Django I would do something like this: location = models.CharField( max_length=3, choices=LOCATION_CHOICES, help_text="Which location do you prefer?" ) LOCATION_CHOICES = ( (''AMS'', ''Amsterdam''), ('...