Opened 8 years ago

Closed 8 years ago

#8105 closed (invalid)

Syncdb ManytoManyField Upgrade error

Reported by: Talat UYARER Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When create a databse from model after if i add a ManytoMantField variable in model.py syncdb not created relation table

Change History (1)

comment:1 Changed 8 years ago by Julian Bez

Resolution: invalid
Status: newclosed

Did you create the model from scratch? Syncdb won't update tables for models that are already there... so when adding a ManyToMany field it won't change anything.

Best way to get it working is using reset, but then you will lose all your data of course.

Note: See TracTickets for help on using tickets.
Back to Top