Hi Rompe,

As for your admin models it seems like they should extend:
`admin.ModelAdmin`, see django documentation
<https://docs.djangoproject.com/en/1.10/ref/contrib/admin/>

I am not sure that this is a problem you have encountered.
But to move further please do like said in the documentation firstly.

Regards,


On Thu, Aug 11, 2016 at 1:06 PM, RompePC <[email protected]> wrote:

> I'll say first that I'm using *xadmin*, although it doesn't matter for
> this problem.
> Python 2.7.3 with Django 1.9.5
>
> The problem is in this piece of code (take it as an example):
>
> class ParentAdmin(object):
>    def __init__(self):
>      # Boring stuff
>      self.list_filter = ["name"]
>      # Calling super()
>
> class SonAdmin(ParentAdmin):
>     # Boring stuff
>
> If I set up *list_filter* in *SonAdmin*, it shows the filter and all goes
> well. But, if I set up it instead in *ParentAdmin*, it just doesn't show.
> And its weird because it works when setting list_display the same way. No
> errors throwed, and no other part of the code is the problem. I think that
> Django overrides it in some moment, but that wouldn't make sense. Any ideas?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 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].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/e74c0eca-d417-4914-ab4c-df5b67bae618%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e74c0eca-d417-4914-ab4c-df5b67bae618%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK52boVa%2Byekd2U5sEHtnQj_Sdmyv%2B-qC6GRdT4RwByUpxx%2BWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to