I'm creating a custom condition function and decorating it with @register in a separate Django app. However, I do not see it showing up in the condition dropdown in the django admin. It seems like this is because the condition choices are set when the form module is loaded. This happens fairly early when the model admin is registered. I've tried to address that here https://github.com/cfpb/django-flags/pull/4 but please let me know if there is different pattern I should be following to register custom conditions.
I'm creating a custom condition function and decorating it with
@register
in a separate Django app. However, I do not see it showing up in the condition dropdown in the django admin. It seems like this is because the condition choices are set when the form module is loaded. This happens fairly early when the model admin is registered. I've tried to address that here https://github.com/cfpb/django-flags/pull/4 but please let me know if there is different pattern I should be following to register custom conditions.