Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ To run the test just type:

.. code-block:: bash

$ cd testproject
$ poetry run pytest

We also prepared a convenient ``Makefile`` to automate commands above:
Expand Down
6 changes: 2 additions & 4 deletions djoser/conf.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# flake8: noqa E501
from django.apps import apps
from django.contrib.auth import get_user_model
from django.conf import settings as django_settings
from django.test.signals import setting_changed
from django.utils.functional import LazyObject
from django.utils.module_loading import import_string

DJOSER_SETTINGS_NAMESPACE = "DJOSER"

auth_module, user_model = django_settings.AUTH_USER_MODEL.rsplit(".", 1)

User = apps.get_model(auth_module, user_model)
User = get_user_model()


class ObjDict(dict):
Expand Down