I can filter quite easily to find models that do/don't have recurrences defined in their RecurrenceField, e.g. by using .filter(recurrences='') or .exclude(recurrences='') in QuerySets (where the RecurrenceField is called recurrences).
However when accessing a specific model instance, I can't work out how to cheaply check if any recurrences are defined on its field. Inspecting instance.recurrences.count() works, but can be extremely expensive for the reasons noted in the documentation.
Am I missing something obvious? Is there a comparator or method on the field I can use?
Hi, thanks for this super useful library.
I can filter quite easily to find models that do/don't have recurrences defined in their
RecurrenceField
, e.g. by using.filter(recurrences='')
or.exclude(recurrences='')
in QuerySets (where theRecurrenceField
is calledrecurrences
).However when accessing a specific model instance, I can't work out how to cheaply check if any recurrences are defined on its field. Inspecting
instance.recurrences.count()
works, but can be extremely expensive for the reasons noted in the documentation.Am I missing something obvious? Is there a comparator or method on the field I can use?
Thanks!