Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into dev
  • Loading branch information
zmrenwu committed Nov 8, 2018
2 parents 8265f6c + 89c80e1 commit 79a5d85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions users/views.py
Expand Up @@ -70,7 +70,6 @@ class UserViewSets(
lookup_value_regex = '[0-9]+'

def get_permissions(self):
print(self.action)
if self.action in ['update', 'partial_update']:
return [permissions.IsAuthenticated(), IsCurrentUser()]
return super().get_permissions()
Expand Down Expand Up @@ -183,7 +182,6 @@ def post(self, request, filename):
user.mugshot.save(filename, file_obj)
user.save()
user.refresh_from_db()
print(user.mugshot.size)
return Response({'mugshot_url': user.mugshot.url}, status=200)


Expand Down

0 comments on commit 79a5d85

Please sign in to comment.