#10330: ManyToManyField shows up last in admin form & model form ---------------------------+------------------------------------------------ Reporter: koto | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ I have a model that contains a ManyToManyField. Independent of where in the model definition I put this ManyToManyField, it's always shown last in the admin edit / new page, as well as in my custom forms. If I change the field definition from ManyToManyField to ForeignKey, the position of this field is where I expect it to be (in this example, after the project field).
{{{ class Experiment(models.Model): author = models.ForeignKey(User) title = models.CharField(max_length=255) slug = models.SlugField() project = models.ForeignKey(Project) protocol = models.ManyToManyField(Protocol, blank=True, null=True) plan = models.TextField(blank=True, null=True) end_date = models.DateField(blank=True, null=True) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10330> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---