What is the standard for naming Django abstract classes? My team leader insists that the name of the abstract model should consist of the fields available in it. for example, IsPublishedAndCreatedAt
. But My class:
class BaseContentProperties(models.Model):
is_published = models.BooleanField()
created_at = models.DateTimeField()
class Meta:
abstract = True
class Category(BaseContentProperties): ...
class Location(BaseContentProperties): ...
class Post(BaseContentProperties): ...
But if there are more fields, then the name will be more, for example, IsPublishedAndCreatedAtAndPublishedAt...
. Who is right?)
If there are some generally established recommendations on this issue, you can send a link so that you can familiarize yourself. Thanks
I described my problem above
user25510847 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.