Please write to django-users as this mailing list is for the development of 
Django itself.

On Monday, January 25, 2016 at 6:07:41 PM UTC-5, Slomski wrote:
>
> Hi,
>
> I am trying to create a django app as follow:
>
> a Block with unique name can have few Flats. Flat name in each Block is 
> unique but flat names can be the same in different Blocks and Flat name 
> needs to be chosen from the range {Paprika, Water, Banana}. 
> each Flat can have three rooms and room names are Blue, Red, Yellow.
> there can be some people staying for a night in each room and the number 
> of peoples can change daily.
>
> so, 
>
> you want to update number of people that stay in each room daily by either 
> selecting specific room or selecting multiple rooms so you can update 
> either one room or multiple rooms in one go.
>
> Question 1: 
>
> Am I right using right relationships: m2m with m2m relationship ? 
>
> Blocks have m2m relationships with Flat names
> Flat names have m2m relationship with Room names
>
> Questions 2:
>
> If relationships are correct than how can you update selected single or 
> multiple rooms via two levels of m2m relationship ? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/67e01547-017a-4db0-89e2-861f6c68acff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to