Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (16 sloc) 505 Bytes

Rule registry


.. automodule:: rules_light.registry


.. literalinclude:: ../../test_project/
   :language: python

Even django-rules-light's view uses a permission, it is registered in rules_light/ and thus is picked up by rules_light.autodiscover():

.. literalinclude:: ../../rules_light/
   :language: python

Of course, you could use any callable instead of the lambda function.