Skip to content
Snippets Groups Projects
Commit 84f99858 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Make updated_{at,by} nullable

parent e6ea84e9
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,8 @@ class ModelWithCreatedUpdatedFields(models.Model): ...@@ -92,8 +92,8 @@ class ModelWithCreatedUpdatedFields(models.Model):
created_at = models.DateTimeField(auto_now_add=True) created_at = models.DateTimeField(auto_now_add=True)
created_by = models.CharField(max_length=150) created_by = models.CharField(max_length=150)
updated_at = models.DateTimeField(auto_now=True) updated_at = models.DateTimeField(auto_now=True, blank=True, null=True)
updated_by = models.CharField(max_length=150) updated_by = models.CharField(blank=True, max_length=150, null=True)
class Meta: class Meta:
abstract = True abstract = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment