Skip to content

Commit

Permalink
Merge pull request #430 from efi-mk/patch-1
Browse files Browse the repository at this point in the history
Add a caveat for django-rest-framework
  • Loading branch information
deschler committed Jan 26, 2018
2 parents 8ec460b + 7b0a4f6 commit f2e3d6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/modeltranslation/caveats.rst
Expand Up @@ -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/

0 comments on commit f2e3d6c

Please sign in to comment.