[Answered ]-Create Active/Archive Models in a DRY way (Django)

2👍

Maybe this helps:

class Base(models.Model):
    m2m = models.ManyToManyField(OtherModel, related_name="%(app_label)s_%(class)s_related")

    class Meta:
        abstract = True

https://docs.djangoproject.com/en/dev/topics/db/models/#be-careful-with-related-name

Leave a comment