Use save method override instead of a signal
and gets the new test file working
This commit is contained in:
parent
2ef777f87e
commit
c7c975d695
11 changed files with 347 additions and 328 deletions
|
@ -19,7 +19,7 @@ class Favorite(ActivityMixin, BookWyrmModel):
|
|||
def save(self, *args, **kwargs):
|
||||
''' update user active time '''
|
||||
self.user.last_active_date = timezone.now()
|
||||
self.user.save()
|
||||
self.user.save(broadcast=False)
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue