(self, model_event, days, content, total_iterations=REPEAT_INDEFINITELY,
            extra_options=None, repeat_every=1)
:param repeat_every: A value of 1 means repeat every month; 2 means repeat every other month, etc.
:param repeat_every: A value of 1 means repeat every month; 2 means repeat every other month, etc.
: param repeat_every : A value of 1 means repeat every month ; 2 means repeat every other month etc .
def set_simple_monthly_schedule(self, model_event, days, content, total_iterations=REPEAT_INDEFINITELY,
            extra_options=None, repeat_every=1):
        """
        :param repeat_every: A value of 1 means repeat every month; 2 means repeat every other month, etc.
        """
        self.check_positive_repeat_every(repeat_every)

        with transaction.atomic():
            self.delete_related_events()

            self.event_type = self.get_event_type_from_model_event(model_event)
            self.repeat_every = -1 * repeat_every
            self.total_iterations = total_iterations
            self.ui_type = Schedule.UI_TYPE_MONTHLY
            self.start_offset = 0
            self.start_day_of_week = self.ANY_DAY
            self.set_extra_scheduling_options(extra_options)
            self.save()

            if content.pk is None:
                content.save()

            order = 1
            for day in days:
                event = self.create_event_from_model_event(model_event)
                event.order = order
                event.day = day

                if order > 1:
                    content.pk = None
                    content.save()

                event.content = content
                event.save()
                order += 1
def set_simple_monthly_schedule ( self , model_event , days , content , total_iterations = REPEAT_INDEFINITELY , extra_options = None , repeat_every = 1 ) : self . check_positive_repeat_every ( repeat_every ) with transaction . atomic ( ) : self . delete_related_events ( ) self . event_type = self . get_event_type_from_model_event ( model_event ) self . repeat_every = - 1 * repeat_every self . total_iterations = total_iterations self . ui_type = Schedule . UI_TYPE_MONTHLY self . start_offset = 0 self . start_day_of_week = self . ANY_DAY self . set_extra_scheduling_options ( extra_options ) self . save ( ) if content . pk is None : content . save ( ) order = 1 for day in days : event = self . create_event_from_model_event ( model_event ) event . order = order event . day = day if order > 1 : content . pk = None content . save ( ) event . content = content event . save ( ) order += 1