mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-26 05:03:46 +00:00
merged @tangentlabs PR to handle more advanced permission mechanisms
This commit is contained in:
parent
718f9430ad
commit
13717f0807
2 changed files with 2 additions and 1 deletions
1
CHANGES
1
CHANGES
|
|
@ -3,6 +3,7 @@ Version 0.7.2
|
|||
* Fix for when settings imports unicode_literals for some reason (Issue #67)
|
||||
* Fixed mess with app_id between pages (Issue #68, thanks @tsouvarev)
|
||||
* Added Farsi translation. Thanks, @amiraliakbari
|
||||
* Improved the permission system, allowing for more advanced permission mechanisms. Thanks, @tangentlabs
|
||||
|
||||
Version 0.7.1
|
||||
-------------
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ Rosetta can be configured via the following parameters, to be defined in your pr
|
|||
* ``ROSETTA_REQUIRES_AUTH``: Require authentication for all Rosetta views. Defaults to ``True``.
|
||||
* ``ROSETTA_POFILE_WRAP_WIDTH``: Sets the line-length of the edited PO file. Set this to ``0`` to mimic ``makemessage``'s ``--no-wrap`` option. Defaults to ``78``.
|
||||
* ``ROSETTA_STORAGE_CLASS``: See the note below on Storages. Defaults to ``rosetta.storage.CacheRosettaStorage``
|
||||
* ``ROSETTA_ACCESS_CONTROL_FUNCTION``: An alternative function that determines if a given user can access the translation views.
|
||||
* ``ROSETTA_ACCESS_CONTROL_FUNCTION``: An alternative function that determines if a given user can access the translation views. This function receives a ``user`` as its argument, and returns a boolean specifying whether the passed user is allowed to use Rosetta or not.
|
||||
|
||||
********
|
||||
Storages
|
||||
|
|
|
|||
Loading…
Reference in a new issue