Skip to content

Commit

Permalink
Merge pull request #226 from ita-social-projects/#editAdminPanel
Browse files Browse the repository at this point in the history
edited serializer fields
  • Loading branch information
RedSSD authored Sep 25, 2023
2 parents a1afb1b + 40464b4 commit f74dad6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions administration/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ class Meta(UserSerializer.Meta):
model = User
fields = (
"id",
"person_name",
"person_surname",
"person_email",
"name",
"surname",
"email",
"phone_number",
"last_login",
"is_active",
"is_staff"
)
read_only_fields = ("phone_number", "person_email")
read_only_fields = ("phone_number", "email")

0 comments on commit f74dad6

Please sign in to comment.