Skip to content
Snippets Groups Projects
Commit a92c2387 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Make by_weekday nullable, update rrule help_text

parent e6b4ce58
No related branches found
No related tags found
No related merge requests found
...@@ -280,25 +280,7 @@ class Schedule(models.Model): ...@@ -280,25 +280,7 @@ class Schedule(models.Model):
RRule, RRule,
on_delete=models.CASCADE, on_delete=models.CASCADE,
related_name="schedules", related_name="schedules",
help_text=dedent( help_text="A recurrence rule."
"""
A recurrence rule.
* 1 = once,
* 2 = daily,
* 3 = business days,
* 4 = weekly,
* 5 = biweekly,
* 6 = every four weeks,
* 7 = every even calendar week (ISO 8601),
* 8 = every odd calendar week (ISO 8601),
* 9 = every 1st week of month,
* 10 = every 2nd week of month,
* 11 = every 3rd week of month,
* 12 = every 4th week of month,
* 13 = every 5th week of month
"""
),
) )
show = models.ForeignKey( show = models.ForeignKey(
Show, Show,
...@@ -317,6 +299,7 @@ class Schedule(models.Model): ...@@ -317,6 +299,7 @@ class Schedule(models.Model):
(5, "Saturday"), (5, "Saturday"),
(6, "Sunday"), (6, "Sunday"),
], ],
null=True
) )
first_date = models.DateField(help_text="Start date of schedule.") first_date = models.DateField(help_text="Start date of schedule.")
start_time = models.TimeField(help_text="Start time of schedule.") start_time = models.TimeField(help_text="Start time of schedule.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment