Wednesday, November 26, 2014

Re: Meta inheritance across abstract base class

Hi,

Ohh. Yup. I didn't read that carefully enough. That behavior doesn't seem expected to me. Expecially considering this sentence:

"if the child does not specify an ordering attribute or a get_latest_by attribute, it will inherit these from its parent."

Collin

On Tuesday, November 25, 2014 9:27:31 AM UTC-5, Torsten Bronger wrote:
Hallöchen!

Collin Anderson writes:

> If you define a new class Meta on C, then it will _replace_ the
> previous class Meta. [...]

I indeed have a Meta class in C but it is derived from the upstream
Meta class.  The inheritance chain in my Meta's is uninterrupted.

Tschö,
Torsten.

--
Torsten Bronger    Jabber ID: torsten...@jabber.rwth-aachen.de
                                  or http://bronger-jmp.appspot.com

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/35de7fdc-9be4-4d14-8644-8b60a3b10bef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment