Getting related values from map table with foreign keys
Hi,
I'm building an app that has some text with tags, the tags are mapped to the text through a mapping table (toxi model).
Something like that:
TEXTID <------>TAGID<------>TAGID
TEXT TEXTID TAG
What would be the best way to display the text and its tags?
I'm very new to django, and programming in any case, I can create a list for the texts for a certain user, but I don't see how to add only the tags for that text in the same list or create somehow a hash with both values.
Is there a django way to do this?
Thanks,
Isaac
--
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home