Thanks !!! I also felt the second sounds more "right" which leads to two requirements, the first is for convenience but the second is a must:
1) On the admin page for add Place I will put 2 or 3 slots for adding Subplace to a place ... is there a way where the first one would be filled with "default" by default? so that each created place would have a default subplace? 2) On the admin page for add event there will be a drop down list for the subplace.... most of the subplaces will be called "default" is there a way to change the label on drop down list to "place - subplace". i tried to change the __unicode__ of subplace to "return u"% - %" % (self.place, self.name)" but it generated and error that subplace object has no attribute 'place'. thanks On Oct 24, 2:27 am, Léon Dignòn <leon.dig...@gmail.com> wrote: > The second sounds more logically. > > On 23 Okt., 15:41, chefsmart <moran.cors...@gmail.com> wrote: > > > I would go with your second solution. > > > On Oct 23, 5:17 pm, Caisys <amamd...@gmail.com> wrote: > > > > Hi, > > > I have classes for Event, Place and Subplace. Some of the Places are > > > divided into different Halls (Subplace) and some have only one. I > > > would like to know how design the relations between the classes. > > > > 1) Should I put two columns in the Event one FK to Place and another > > > FK to Hall? > > > 2) Should I create one FK only to Hall and create a record in Hall for > > > every Place even if the Place has no Halls? > > > > Thanks- Zitierten Text ausblenden - > > > - Zitierten Text anzeigen - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---