ProgressUpdate doesn't need its own date field

Just use the base model's created_date
This commit is contained in:
Joel Bradshaw
2020-11-25 22:56:41 -08:00
parent 090cf2aea7
commit 64fb88cc10
4 changed files with 2 additions and 4 deletions

View File

@ -339,7 +339,6 @@ class ProgressUpdate(BookWyrmModel):
readthrough = models.ForeignKey('ReadThrough', on_delete=models.PROTECT)
progress = models.IntegerField()
mode = models.CharField(max_length=3, choices=ProgressMode.choices, default=ProgressMode.PAGE)
date = models.DateTimeField(auto_now_add=True)
def save(self, *args, **kwargs):
''' update user active time '''