def forwards(apps, schema_editor):
    """
    Create initial recurrence rules.
    """
    RecurrenceRule = apps.get_model('icekit_events', 'RecurrenceRule')
    for description, recurrence_rule in RULES:
        RecurrenceRule.objects.get_or_create(
            description=description,
            defaults=dict(recurrence_rule=recurrence_rule),
        )
Create initial recurrence rules.