#8825: Inherited ManyToMany-fields does not appear in edit forms
---------------------------------------------------------+------------------
 Reporter:  Christofer Bernander <[EMAIL PROTECTED]>  |       Owner:  nobody    
   Status:  new                                          |   Milestone:         
   
Component:  Admin interface                              |     Version:  SVN    
   
 Keywords:  ManyToMany inheritance new_fields            |       Stage:  
Unreviewed
Has_patch:  1                                            |  
---------------------------------------------------------+------------------
 Since revision [8855], inherited ManyToMany-fields does not appear in edit
 forms on the admin site.

 Example {{{models.py}}}:

 {{{
 from django.db import models
 from django.contrib import admin

 class Person(models.Model):
         name = models.CharField(max_length=64, blank=True, null=True)

 class BaseClass(models.Model):
         person = models.ManyToManyField(Person,
 related_name="%(class)s_person", blank=True, null=True)
         text = models.CharField(max_length=64, blank=True, null=True)

 class InheritedClass(BaseClass):
         status = models.CharField(max_length=64, blank=True, null=True)

 admin.site.register(InheritedClass)
 }}}

 In the example above, the {{{person}}} field will appear in [8854], but
 disappear in [8855].

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8825>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to