#24404: Custom ManyToManyField doesnt create a specific table
----------------------------+--------------------
Reporter: SiDChik | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/24404>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.2829ac369e07ebb6d180f61d42c34927%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.