Opened 9 years ago

Closed 9 years ago

#24404 closed Bug (duplicate)

Custom ManyToManyField doesnt create a specific table

Reported by: SiDChik Owned by: nobody
Component: Migrations Version: 1.7
Severity: Normal 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

I'm trying to create a custom field:

class CommentsField(models.ManyToManyField):
    pass

When im trying to use it and create a migration:

comments = CommentsField(Comment, null=True, default=None, blank=True)

Migration looks fine but than i apply it django doesnt create any table. So than i use this field i get an error:

(1146, "Table 'ilab.params_measures_comments' doesn't exist")

I have an issue to create field with builtin widget and manytomany widget... And looks like i can't do it without fix.

Change History (1)

comment:1 by Tim Graham, 9 years ago

Resolution: duplicate
Status: newclosed

This looks like a duplicate of #24236. That fix will be release in Django 1.7.5 sometime soon. Please reopen if using the latest stable/1.7.x branch doesn't solve it. Thanks!

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