Allow partial functions as predicates
Fixed syntax highlighting
Added note to first remove 'rules' from INSTALLED_APPS for autodiscovery to work