Add ability to merge 2 user accounts

This commit is contained in:
Lance Edgar 2017-02-17 12:49:15 -06:00
parent 35126e8e5b
commit 93f40ef36e
2 changed files with 43 additions and 1 deletions

View file

@ -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