2011/9/10 Danny Gale <danny.m.g...@gmail.com>

> Daniel, thank you very much. That's extremely helpful.
>
> What I'm trying to define is that every song can be on one album, but each
> album can (of course) have many songs. For that, would it be better to use
> the ManyToMany from Album to song or FK from song to album?
>

FK from Song to Album.

The Django Tutorial has a good example on how to use this relationship: a
Poll has many Choices.

https://docs.djangoproject.com/en/1.3/intro/tutorial01/


-- 
Luis Felipe López Acevedo
IntrosMedia <http://introsmedia.wordpress.com/>

-- 
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.

Reply via email to