Two ManyToManyFields to the same object should give that other object two API methods, not one
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.
Change History
(10)
Description: |
modified (diff)
|
Summary: |
M2MField doesn't work. → Two ManyToManyFields to the same object should give that other object two API methods, not one
|
Component: |
Admin interface → Metasystem
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Cleaned up formatting in description.