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
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
Hi,
If you define a new class Meta on C, then it will _replace_ the previous
class Meta. You can, however have class Meta inherit other class Meta.
class Student(CommonInfo):
# ...
class Meta(CommonInfo.Meta):
db_table = 'student_info'
3 matches
Mail list logo