Init reversion

This commit is contained in:
2021-02-14 12:52:36 +00:00
parent 82ebef8465
commit 56a8b7afaa
5 changed files with 20 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
from django.db import models
from reversion import revisions as reversion
class Status(models.Model):
name = models.CharField(max_length=80)
@@ -23,6 +25,7 @@ class Model(models.Model): # Cause that won't be a confusing name at all
return "{} {}".format(self.make.name, self.name)
@reversion.register
class Vehicle(models.Model):
name = models.CharField(max_length=50)
# color