Compare commits
No commits in common. "d1c75f7033342b10b47998411ce950e54d111995" and "32a8cbfda6f4e8325b757c463da9e924bb30b773" have entirely different histories.
d1c75f7033
...
32a8cbfda6
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,6 +1,4 @@
|
|||||||
.env
|
.env
|
||||||
*.pyc
|
*.pyc
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
**/migrations/**
|
**/migrations/**
|
||||||
/profiles/static/avatars/*
|
|
||||||
!/profiles/static/avatars/default
|
|
@ -4,6 +4,7 @@ from .models import ProfileModel
|
|||||||
class ProfileSerializer(serializers.ModelSerializer):
|
class ProfileSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
username = serializers.ReadOnlyField(source='user.username')
|
username = serializers.ReadOnlyField(source='user.username')
|
||||||
|
#creator_id = serializers.ReadOnlyField(source='user.pk')
|
||||||
avatar_url = serializers.ImageField(required=False)
|
avatar_url = serializers.ImageField(required=False)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user