﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8161	ManyToManyField with relation to self not saved in admin when using inheritance	Mathijs de Bruin	Jonas Obrist	"In the following example code, the 'links' field does not get saved in the admin for {{{ ChildModel}}}:

{{{
class ParentModel(models.Model):
    slug = models.SlugField()

    # For some reason, changes do not get saved (anymore)
    links = models.ManyToManyField('self', related_name='links', null=True, blank=True)
                    
    def __unicode__(self):
        return self.slug
        
class ChildModel(ParentModel):
    text = models.TextField()
}}}

The admin is registred simply by using:
{{{ admin.site.register(ChildModel) }}}

It seems to me this is a bug in either the newforms Admin or newforms."	Bug	closed	Database layer (models, ORM)	dev	Normal	invalid	newforms newforms-admin admin inheritance manytomany self	drbob@… madhusudancs@…	Accepted	0	0	0	0	0	0
