Merge pull request #430 from efi-mk/patch-1

Add a caveat for django-rest-framework
This commit is contained in:
Dirk Eschler 2018-01-26 12:44:27 +01:00 committed by GitHub
commit f2e3d6c2b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,5 +61,9 @@ If you forget to register the shadow models, you will get an error like:
.. code::
TypeError: 'text_es' is an invalid keyword argument for this function
Using in combination with ``django-rest-framework``
-------------------------------------------------
When creating a new viewset , make sure to override ``get_queryset`` method, using ``queryset`` as a property won't work because it is being evaluated once, before any language was set.
.. _documentation: https://django-audit-log.readthedocs.io/