mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Delete imported but not used method
In 'Generating Tokens' section, the example code imported get_user_model but not used.
This commit is contained in:
parent
7932f2c6f8
commit
5c3c4802d3
|
@ -168,7 +168,6 @@ The `curl` command line tool may be useful for testing token authenticated APIs.
|
|||
If you want every user to have an automatically generated Token, you can simply catch the User's `post_save` signal.
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.db.models.signals import post_save
|
||||
from django.dispatch import receiver
|
||||
from rest_framework.authtoken.models import Token
|
||||
|
|
Loading…
Reference in New Issue
Block a user