Skip to content

Commit

Permalink
CTD-1855 remove user from user_alias model
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasha Syvyuk authored and Dasha Syvyuk committed Apr 25, 2022
1 parent 9355f63 commit 5583c69
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions livestyled/models/user.py
Expand Up @@ -295,26 +295,22 @@ def __init__(
id: int,
user_alias_type,
value,
user: str or None = None,
updated_at: datetime or None = None,
created_at: datetime or None = None
):
self.id = id
self.user_alias_type = User.placeholder(int(user_alias_type))
self.user = User.placeholder(int(user)) if user else None
self.value = value
self.created_at = created_at
self.updated_at = updated_at

@classmethod
def create_new(
cls,
user,
user_alias_type,
value
):
user_alias = UserAlias(
user=user,
user_alias_type=user_alias_type,
value=value,
updated_at=None,
Expand Down

0 comments on commit 5583c69

Please sign in to comment.