Skip to content
Snippets Groups Projects
Commit 78f56443 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Explicit field names are better than implicit ones.

parent e1d899ad
No related branches found
No related tags found
No related merge requests found
......@@ -25,4 +25,12 @@ from rest_framework import serializers
class ProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = "__all__"
fields = (
"user",
"cba_username",
"cba_user_token",
"created_at",
"created_by",
"updated_at",
"updated_by",
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment