-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Q&AQuestions and answersQuestions and answers
Description
The position of the foreignkey field in the fields tuple is not flexible.
current situation (in the example) only works with the first foreignkey field on the t position.
This works:
fields = (
'id',
'title',
'director', <-- FK
'country', <-- FK
'parents_guide',
'imdb_rating',
'genre',
'imdb_link',
)
This gives a javascript error:
fields = (
'id',
'title',
'imdb_rating',
'director', <-- FK
'country', <-- FK
'parents_guide',
'genre',
'imdb_link',
)
This gives also a javascript error:
fields = (
'id',
'title',
'director', #<-- FK
'imdb_rating',
'country', #<--FK
'parents_guide',
'imdb_rating',
'genre',
'imdb_link',
)
This gives a form validation error:
fields = (
'id',
'director',
'country',
'title',
'imdb_rating',
'parents_guide',
'imdb_rating',
'genre',
'imdb_link',
)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Q&AQuestions and answersQuestions and answers