> > > With that said, I'd recommend changing the naming conventions of your > Model fields. For example: > > User > - name > - country > > Goals > - name > - description > - country > > Country > - name >
Sorry, wanted to mention a small fix on what I imagine would be better naming conventions (just so your code is clearer and easier to query) Goals - name # Is this the user's name? Then why not just make this a foreign key to a User? so maybe user = models.ForeignKey(User) Also, some docs on querying django models: https://docs.djangoproject.com/en/dev/topics/db/queries/#related-objects -- 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.