verbose_name_plural not inherited if base class is abstract.
|Reported by:||Beetle_B||Owned by:||Ramiro Morales|
|Component:||Database layer (models, ORM)||Version:||1.0|
|Severity:||Keywords:||verbose_name_plural, inheritance, abstract|
|Cc:||mueen@…, bronger@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Perhaps this is desired behavior. However, I think the docs should mention this explicitly.
The situation where this arose is that I was creating a CategoryBase class (abstract), which was a bit barebones. I then subclassed this to get a number of derived classes (all abstract as well) - because I have different use cases (some need an HTML description, which will be formatted using Textile or Markdown, etc). Then for one particular app, I needed one of these, so I subclassed (without making it an abstract class).
I had set verbose_name_plural in the Meta of the original CategoryBase class. This did not get inherited...
CategoryBase --> CategoryMarkup --> Category
where all but Category were abstract classes.
Anyway, I'm not arguing it should be inherited - will leave that up to you to decide. I just feel that if it isn't, it should be reflected in the docs for abstract base classes.
Change History (18)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
comment:4 Changed 7 years ago by
|Component:||Uncategorized → Documentation|
|Triage Stage:||Unreviewed → Accepted|
comment:8 follow-up: 12 Changed 7 years ago by
|Owner:||changed from nobody to Beetle_B|
|Status:||new → assigned|