access fields in intermediate model

2011-07-01 Thread feng yu
http://stackoverflow.com/questions/2005953/django-access-fields-in-intermediate-model in this post, you can find how to access fields in intermediate model like this 'my_group.membership_set.all()' i use this in my own code, but it did not work. it get ' [] ' my models is very likely with the

Django forms, inheritance

2011-05-24 Thread feng yu
Hi all ,i have a question about Django forms in inheritance this is my models below class Database(models.Model): TYPE_CHOICES = ( (u'0',u'Oracle'), (u'1',u'MySQL'), ) name = models.CharField(max_length=200,unique=True) type =