-
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.
- Loading branch information
1 parent
1cb3c45
commit f04ba61
Showing
7 changed files
with
126 additions
and
5 deletions.
There are no files selected for viewing
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
48 changes: 48 additions & 0 deletions
48
apps/global_settings/migrations/0004_settings_enable_hostel_limits_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,48 @@ | ||
# Generated by Django 4.2.7 on 2024-02-03 22:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('global_settings', '0003_alter_settings_options_settings_max_violation_count'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='settings', | ||
name='enable_hostel_limits', | ||
field=models.BooleanField(default=False, help_text='Limit the number of students eligible for a particular hostel. Limit can be set from Hostel profile.'), | ||
), | ||
migrations.AddField( | ||
model_name='settings', | ||
name='enable_yearwise_limits', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='settings', | ||
name='first_year', | ||
field=models.IntegerField(blank=True, default=0, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='settings', | ||
name='fourth_year', | ||
field=models.IntegerField(blank=True, default=0, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='settings', | ||
name='second_year', | ||
field=models.IntegerField(blank=True, default=0, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='settings', | ||
name='third_year', | ||
field=models.IntegerField(blank=True, default=0, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='settings', | ||
name='enable_hostel_timers', | ||
field=models.BooleanField(default=False, help_text='Enabling activates the time limits specified in the Hostel profile. The timers below, however, will not be operational.'), | ||
), | ||
] |
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
18 changes: 18 additions & 0 deletions
18
apps/nightpass/migrations/0004_hostel_max_students_allowed.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,18 @@ | ||
# Generated by Django 4.2.7 on 2024-02-03 22:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('nightpass', '0003_hostel_backend_checkin_timer_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='hostel', | ||
name='max_students_allowed', | ||
field=models.IntegerField(blank=True, default=0, null=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