      warm = models.BooleanField()
      def __unicode__(self):
          return self.value
  
  
  class Thing(models.Model):
      title = models.CharField(max_length=20)
      color = models.ForeignKey(Color, limit_choices_to={'warm': True})
 
</s> remove     return {'title': spec.title, 'choices' : list(spec.choices(cl))}
 </s> add     tpl = get_template(spec.template)
    return tpl.render(Context({
        'title': spec.title,
        'choices' : list(spec.choices(cl)),
        'spec': spec,
    })) </s> remove     AdminOrderedCallable, Report)
 </s> add     AdminOrderedCallable, Report, Color2)
# we replicate Color to register with another ModelAdmin
class Color2(Color):
    class Meta:
        proxy = True
      warm = models.BooleanField()
      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)
      color = models.ForeignKey(Color, limit_choices_to={'warm': True})
keep keep keep add keep keep keep keep
 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 
tests/regressiontests/admin_views/models.py