Skip to content

Commit

Permalink
make avatar optional
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Sep 14, 2023
1 parent 91aa493 commit 0bd68aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpdesk/models/user.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

import logging
from typing import List
from typing import List, Optional
from pydantic import BaseModel, validator


Expand All @@ -14,7 +14,7 @@ class User(BaseModel):
name: str
email: str
roles: List[str] = []
avatar: str = None
avatar: Optional[str] = None

@property
def is_authenticated(self) -> bool:
Expand Down

0 comments on commit 0bd68aa

Please sign in to comment.