django-clausula internal documentation

django-clausula is a pluggable app to allow adding various conditions via Django’s admin site. Abstracts for these conditions are defined in source code and registered in similar fashion as admin models.

class clausula.base.ConditionCache

This is a typical registering class.


This method is used to populate choices field in the admin.

Return type:nested list in CHOICES format
register(condition, name=None)

This method is used to register your statement to the global clauses list registry.

  • condition – a function that will be called to resolve the condition
  • name (string) – a name that will be shown in the admin

This is shamelessly taken from django.admin.

This method is used to populate the global clauses object with whatever conditions developers put in their apps.

Project Versions

Previous topic

Welcome to django-clausula’s documentation!

This Page