Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 733 Bytes

filters.rst

File metadata and controls

31 lines (18 loc) · 733 Bytes

Filter Setup

~tardis.tardis_portal.filters

Filters are called once an object has been saved to the database. They build on the Django Signals Infrastructure.

In the settings.py file filters are activated by specifying them within the POST_SAVE_FILTERS variable, for example

POST_SAVE_FILTERS = [
    ("tardis.tardis_portal.filters.exif.EXIFFilter",
     ["EXIF", "http://exif.schema"]),
]

The format they are specified in is

(<filter class path>, [args], {kwargs})

Where args and kwargs are both optional.