Skip to content

Commit

Permalink
Make source arg required in RHSaveProfilePicture (indico#6585)
Browse files Browse the repository at this point in the history
  • Loading branch information
SegiNyn authored Oct 17, 2024
1 parent da2c274 commit df9678e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indico/modules/users/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class RHSaveProfilePicture(RHUserBase):
"""Update the user's profile picture."""

@use_kwargs({
'source': EnumField(ProfilePictureSource)
'source': EnumField(ProfilePictureSource, required=True)
})
def _process(self, source):
self.user.picture_source = source
Expand Down

0 comments on commit df9678e

Please sign in to comment.