Skip to content

Commit

Permalink
Mise à jour de Django Rest Framework (#6446)
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen authored Feb 10, 2023
1 parent d23dbc6 commit 340ab0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ requests==2.28.1
django-cors-headers==3.13.0
django-filter==22.1
django-oauth-toolkit==1.7.0
djangorestframework==3.13.1
djangorestframework==3.14.0
drf-extensions==0.7.1
dry-rest-permissions==0.1.10
drf-yasg==1.21.3
drf-yasg==1.21.4

# Dependencies for slug generation, please be extra careful with those
django-uuslug==2.0.0
Expand Down
8 changes: 4 additions & 4 deletions zds/member/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ class ProfileValidatorSerializer(serializers.ModelSerializer):
is_active = serializers.BooleanField(source="user.is_active", required=False)
date_joined = serializers.DateTimeField(source="user.date_joined", required=False)
permissions = DRYPermissionsField(additional_actions=["ban"])
show_sign = serializers.NullBooleanField(required=False)
hide_forum_activity = serializers.NullBooleanField(required=False)
is_hover_enabled = serializers.NullBooleanField(required=False)
email_for_answer = serializers.NullBooleanField(required=False)
show_sign = serializers.BooleanField(allow_null=True, required=False)
hide_forum_activity = serializers.BooleanField(allow_null=True, required=False)
is_hover_enabled = serializers.BooleanField(allow_null=True, required=False)
email_for_answer = serializers.BooleanField(allow_null=True, required=False)

class Meta:
model = Profile
Expand Down

0 comments on commit 340ab0d

Please sign in to comment.