mumbleapi
mumbleapi copied to clipboard
Refactoring models to follow DRY principle
Is your feature request related to a problem? Please describe.
No, i just saw different model class having the same attribute
created = models.DateTimeFied(...)
Describe the solution you'd like
Can't we move the similar attribute in this case
created = models.DateTimeField(...)
to a separate class and make other class that needs created to inherit from the class?
Describe alternatives you've considered
class DateTimeModel(models.Model):
created = models.DateTimeField(...)
class Meta:
abstract = True
class AnotherModel(DateTimeModel):
...
how can I take this issue, I want to collaborate.
Thank you for your suggestion @sulavmhrzn , i will assign this to you soon @FredyChivalan .
@PraveenMalethia if this is not started I can pick this up. Thanks!
@PraveenMalethia pls assign this to me.