-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
89 additions
and
19 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
booking/migrations/0092_alter_allowedgroup_options_alter_eventtype_options_and_more.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,43 @@ | ||
# Generated by Django 4.1.1 on 2023-12-29 12:04 | ||
|
||
import booking.models | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('booking', '0091_datamigration_permissions'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='allowedgroup', | ||
options={'ordering': ('group__name',)}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='eventtype', | ||
options={'ordering': ('event_type', 'subtype')}, | ||
), | ||
migrations.AddField( | ||
model_name='event', | ||
name='allowed_group_override', | ||
field=models.ForeignKey(blank=True, help_text='Override group allowed to book this event (defaults to same group as the event type)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='events', to='booking.allowedgroup'), | ||
), | ||
migrations.AlterField( | ||
model_name='event', | ||
name='allowed_group', | ||
field=models.ForeignKey(blank=True, help_text='Override group allowed to book this event (defaults to same group as the event type)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='booking.allowedgroup'), | ||
), | ||
migrations.AlterField( | ||
model_name='event', | ||
name='payment_time_allowed', | ||
field=models.PositiveIntegerField(blank=True, help_text='Number of hours allowed for payment after booking (after this bookings will be cancelled.)', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='eventtype', | ||
name='allowed_group', | ||
field=models.ForeignKey(default=booking.models.get_default_allowed_group_id, help_text='Group allowed to book this type of event', on_delete=models.SET(booking.models.get_default_allowed_group), related_name='event_types', to='booking.allowedgroup'), | ||
), | ||
] |
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,17 @@ | ||
# Generated by Django 4.1.1 on 2023-12-29 12:07 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('booking', '0092_alter_allowedgroup_options_alter_eventtype_options_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='event', | ||
name='allowed_group', | ||
), | ||
] |
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
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