I create two m2mfields which reference to the same class, such as this: class Name(Model): name = CharField (maxlength=50) def __repr__(self): return self.name
class People(Model): first_name = ManyToManyField (Name) last_name = ManyToManyField (Name) def __repr__(self): return self.first_name I get two tables in DB: app_peoples_first_name and app_peoples_last_name: And i also get three apis: set_first_name, set_last_name and get_name_list. while i think there should be two gets here: get_first_name_list and get_last_name_list. Or how should i get these two fields? anybody have met this kind of questions? Help!