fix daphne deployment

This commit is contained in:
Alexander Laevens
2022-11-30 14:47:23 -07:00
parent 339b0c6ad9
commit 2e7a306279
6 changed files with 44 additions and 5 deletions

View File

@@ -21,6 +21,10 @@ class UserSerializer(serializers.ModelSerializer): # https://stackoverflow.com/
return super().update(instance, validated_data)
image = serializers.ImageField(
max_length=None, use_url=False
)
class Meta:
model = User
fields = ("id", "username", "first_name", "last_name", "password", "image", "homegroup", "homegroup_invites")