Skip to content

Commit

Permalink
Remove APIKey Django model class
Browse files Browse the repository at this point in the history
The reason: florimondmanca#180
  • Loading branch information
onedayyoumay committed Aug 19, 2024
1 parent 15ffd45 commit 042f381
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/rest_framework_api_key/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,3 @@ def save_model(
messages.add_message(request, messages.WARNING, message)
else:
obj.save()


admin.site.register(APIKey, APIKeyModelAdmin)

APIKeyAdmin = APIKeyModelAdmin # Compatibility with <1.3
4 changes: 0 additions & 4 deletions src/rest_framework_api_key/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,3 @@ def _validate_revoked(self) -> None:

def __str__(self) -> str:
return str(self.name)


class APIKey(AbstractAPIKey):
pass

0 comments on commit 042f381

Please sign in to comment.