Compare commits

..

No commits in common. "d1c75f7033342b10b47998411ce950e54d111995" and "32a8cbfda6f4e8325b757c463da9e924bb30b773" have entirely different histories.

2 changed files with 2 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,6 +1,4 @@
.env .env
*.pyc *.pyc
db.sqlite3 db.sqlite3
**/migrations/** **/migrations/**
/profiles/static/avatars/*
!/profiles/static/avatars/default

View File

@ -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: