From 5c3c4802d3dcc2436725c15c5539c63e92aed469 Mon Sep 17 00:00:00 2001 From: lowid Date: Mon, 4 May 2015 18:15:49 +0800 Subject: [PATCH] Delete imported but not used method In 'Generating Tokens' section, the example code imported get_user_model but not used. --- docs/api-guide/authentication.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index fe1be7bf0..54f6ac030 100644 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -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