mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #17515 -- Added ability to override the template of custom admin FilterSpec classes. Thanks, saxix and Julien Phalip.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -105,6 +105,10 @@ class Color(models.Model):
|
||||
def __unicode__(self):
|
||||
return self.value
|
||||
|
||||
# we replicate Color to register with another ModelAdmin
|
||||
class Color2(Color):
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
class Thing(models.Model):
|
||||
title = models.CharField(max_length=20)
|
||||
|
||||
Reference in New Issue
Block a user