Re: Can't figure out how to obtain organized list of my friends

2012-07-06 Thread Keith D. Cardin
Thank you guys SO MUCH! I'm not only a new learning of Django, but of Python and programming in general. Only con to being self taught is that you learn these things as you go! Thank you for gearing me in the right direction, and so quickly! After some homework and deciding how to alter my

Re: Can't figure out how to obtain organized list of my friends

2012-07-03 Thread Jon Black
I agree with Kenneth. Your models seem odd. Why not use a ManyToManyField? The django docs even provides quite a nice example (see: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.symmetrical): class Person(models.Model): friends =

Re: Can't figure out how to obtain organized list of my friends

2012-07-03 Thread kenneth gonsalves
On Mon, 2012-07-02 at 20:31 -0700, Keith D. Cardin wrote: > I'm trying to create a "my friends" page, which will list the user's > friends listed in alphabetical order. > I have two classes involved with this data: Profile [and] Friendship > > *class Friendship(models.Model):* > friend