angee.scheduling.fields
Model fields for the Angee scheduling addon.
RecurrenceField
python
class RecurrenceField(models.CharField)A CharField holding an RFC-5545 RRULE string; blank means a single event.
A consumer model composes this field to become recurrence-capable. The stored value is the bare rule (e.g. "FREQ=WEEKLY"); :class:~angee.scheduling.recurrence.Recurrence turns it into occurrences. full_clean (and therefore the Hasura create/update path, which full_clean\ s its input) rejects a malformed rule via :meth:Recurrence.validate. The column defaults to blank-allowed so "non-recurring" is the natural, zero-ceremony state.
__init__
python
def __init__(*args: Any, **kwargs: Any) -> NoneDefault to a blank-allowed rule column so 'no recurrence' needs no opt-in.
validate
python
def validate(value: Any, model_instance: Any) -> NoneRun CharField validation, then reject a value that is not a parseable RRULE.