Use empty collections when clearing portals/contacts instead of None

This avoids an error when logging out regarding "NoneType is not iterable".
This commit is contained in:
Travis Ralston
2019-04-19 23:42:11 -06:00
parent 1df87447bd
commit a2e64b4e0b
+2 -2
View File
@@ -106,8 +106,8 @@ class User(Base):
def delete(self) -> None:
super().delete()
self.portals = None
self.contacts = None
self.portals = []
self.contacts = []
class UserPortal(Base):