def METHOD_NAME(self, form, period_formset_with_days):
    messages.error(self.request, _('Saving failed. Check error in the form.'))
    period_formset_with_days = self.add_empty_forms(period_formset_with_days)
    trans_fields = get_translated_field_count()
    return self.render_to_response(
        self.get_context_data(
            form=form,
            period_formset_with_days=period_formset_with_days,
            trans_fields=trans_fields,
            page_headline=_('Edit Unit'),
        )
    )