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.
This is a typical registering class.
This method is used to populate choices field in the admin.
Return type: | nested list in CHOICES format |
---|
This method is used to register your statement to the global clauses list registry.
Parameters: |
|
---|
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.