Thanks for your reply. The single quotes worked.
I can't seem to get it to do what I want though.
I want to be able to first define what city sections belong to what
city. Then add "places" that are attached to a specific
city/city_section.
I'll keep experimenting with it...
--~--~-
Thanks for your reply. I'm trying what you said but I can't get it to
work. If I put class "City" first, "Place" doesn't work, and if I put
another class first, other classes get errors. Not sure what is wrong
with the order.
from django.db import models
class City(models.Model):
CITIES =
I'm not sure the best way to do this.
I want to have "class Place". "Places" can be listed by either
specific "City", or by a specific "Section" of a city.
list_places_by_city
list_places_by_citysection
Also, I want to have more than one type of place. Is subclasses the
right way to do this?
3 matches
Mail list logo