remove_push_device_token: Remove unused request argument.

This commit is contained in:
Tim Abbott
2017-03-05 22:01:28 -08:00
parent 657dfcbddc
commit 89eb7636ba
2 changed files with 4 additions and 4 deletions

View File

@@ -357,8 +357,8 @@ def add_push_device_token(user_profile, token_str, kind, ios_app_id=None):
token.last_updated = timezone.now()
token.save(update_fields=['last_updated'])
def remove_push_device_token(request, user_profile, token_str, kind):
# type: (HttpRequest, UserProfile, str, int) -> None
def remove_push_device_token(user_profile, token_str, kind):
# type: (UserProfile, str, int) -> None
try:
token = PushDeviceToken.objects.get(token=token_str, kind=kind)
token.delete()