mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
Merge pull request #1600 from haiwen/tc
Remove t&c relation when user is deleted
This commit is contained in:
@@ -253,6 +253,10 @@ class User(object):
|
|||||||
ccnet_api.remove_emailuser(source, username)
|
ccnet_api.remove_emailuser(source, username)
|
||||||
Profile.objects.delete_profile_by_user(username)
|
Profile.objects.delete_profile_by_user(username)
|
||||||
|
|
||||||
|
if settings.ENABLE_TERMS_AND_CONDITIONS:
|
||||||
|
from termsandconditions.models import UserTermsAndConditions
|
||||||
|
UserTermsAndConditions.objects.filter(username=username).delete()
|
||||||
|
|
||||||
def get_and_delete_messages(self):
|
def get_and_delete_messages(self):
|
||||||
messages = []
|
messages = []
|
||||||
return messages
|
return messages
|
||||||
|
Reference in New Issue
Block a user