Add ability to merge 2 user accounts
This commit is contained in:
parent
35126e8e5b
commit
93f40ef36e
2 changed files with 43 additions and 1 deletions
|
@ -482,7 +482,11 @@ class MasterView(View):
|
|||
return result
|
||||
|
||||
def merge_objects(self, removing, keeping):
|
||||
raise NotImplementedError("please implement `{}.merge_objects()`".format(self.__class__.__name__))
|
||||
"""
|
||||
Merge the two given objects. You should probably override this;
|
||||
default behavior is merely to delete the 'removing' object.
|
||||
"""
|
||||
self.Session.delete(removing)
|
||||
|
||||
##############################
|
||||
# Core Stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue