-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only allow each slide to be advanced by next/previous once per auto_a…
…dvance_duration This keeps slides from being advanced erratically when multiple displays are displaying the same auto-advancing slide deck.
- Loading branch information
1 parent
e207abc
commit 2c4bc2c
Showing
3 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
OpenShow/slides/migrations/0020_display_previous_slide_display_slide_changed_at.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 4.2.6 on 2024-04-17 09:32 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("slides", "0019_alter_display_current_slide"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="display", | ||
name="previous_slide", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="slides.slide", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="display", | ||
name="slide_changed_at", | ||
field=models.DateTimeField(auto_now=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters