#20777: admin delete page proxy models
---------------------------------+--------------------------------------
Reporter: CollinAnderson | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.6-beta-1
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by Harm Geerts <hgeerts@…>):
I don't think it's possible to define fields on a proxy model but it could
refer to a property that is not defined on the base model itself. For
example:
{{{#!python
class Base(Model):
def __unicode__(self):
return self.kind
class Pony(Base):
kind = 'pony'
class Meta:
proxy = True
}}}
Not sure if this kind of behavior should be supported but it's possible
and would break the second solution.
I'll update the first solution for python 3.
--
Ticket URL: <https://code.djangoproject.com/ticket/20777#comment:5>
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/072.ca8ded355a4569730ab4ddbb639dd9c8%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.