Opened 17 years ago
Closed 17 years ago
#8105 closed (invalid)
Syncdb ManytoManyField Upgrade error
| Reported by: | Talat UYARER | Owned by: | nobody |
|---|---|---|---|
| Component: | Uncategorized | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When create a databse from model after if i add a ManytoMantField variable in model.py syncdb not created relation table
Note:
See TracTickets
for help on using tickets.
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.