New to django and python. Just trying some basics here.I have the following model:
class Author(models.Model): name = models.ForeignKey(User) def __str__(self): return self.name.username class Entry(models.Model): body_text = models.TextField() headtitle = models.CharField(maxlength=152) pubdate = models.DateTimeField() authors = models.ManyToManyField(Author) I have these populated in MySql (5 entries with 3 different authors, populated via Django admin) Question: In python, how do I access name attribute in Author? That is, I'd like to know how to find out author of each entry.? Please help. Thanx --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---