Skip to content

Commit

Permalink
删除print语句
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxg committed Nov 7, 2018
1 parent 6918233 commit 89c80e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions users/views.py
Original file line number Diff line number Diff line change
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 89c80e1

Please sign in to comment.