Broadcast user deletions
This commit is contained in:
parent
5df2ac676b
commit
5b7f2007e8
3 changed files with 8 additions and 2 deletions
|
@ -283,6 +283,12 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
|||
editable=False,
|
||||
).save(broadcast=False)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
""" deactivate rather than delete a user """
|
||||
self.is_active = False
|
||||
# skip the logic in this class's save()
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
@property
|
||||
def local_path(self):
|
||||
""" this model doesn't inherit bookwyrm model, so here we are """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue