'No registered models were found when using django-simple-history in inhered model
I've created a class to inherit to my django models so I can use django-simple-history. However, when trying to generate migrations, it indicates that there are no changes detected
class VersionableModel:
history = HistoricalRecords()
def getHistory(self):
pass
class SoftDeleteModel(models.Model):
is_deleted = models.BooleanField(default=False, verbose_name='Deshabilitado')
objects = SoftDeleteManager()
all_objects = models.Manager()
class DimensionAmenaza(SoftDeleteModel, VersionableModel):
mombre_dimension_amenaza = LowerCharField(blank=False, unique=True, max_length=100)
peso_dimension_amenaza = models.FloatField(validators=[validate_percent], null=False, blank=False)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
