mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-02 02:24:42 +00:00
Add a caveat for django-rest-framework
This commit is contained in:
parent
c5ecada701
commit
7b0a4f6d7e
1 changed files with 4 additions and 0 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Reference in a new issue