Fix: typing on creator field on posts api
This commit is contained in:
parent
e4926bbb5b
commit
adb9ad8683
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class PostSerializer(serializers.ModelSerializer):
|
|||
"content": desc,
|
||||
}
|
||||
|
||||
def get_creator(self, obj) -> Dict[str, str]:
|
||||
def get_creator(self, obj) -> Dict[str, Optional[str]]:
|
||||
return {
|
||||
"slug": obj.creator.slug,
|
||||
"name": obj.creator.name,
|
||||
|
|
Loading…
Add table
Reference in a new issue