Thanks Dj Glicrease:
I see that the the admin interface works just as you said. Thats
pretty smart. However, I don't see the name of the related object, it
show something like...
<django.db.models.fields.related.ManyRelatedManager object at
0x0141A450>
Here's the model...
class TestModel2(models.Model):
m2mfield1 = models.ManyToManyField('TestModel1')
active = models.CharField(max_length=1, choices=STATUS_CHOICES)
def __unicode__(self):
return u'%s %s' % (self.m2mfield1, self.active)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---