-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from moshthepitt/issue-19-uncounted-days
Add support for free days
- Loading branch information
Showing
9 changed files
with
312 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
""" | ||
Main init file for small_small_hr | ||
""" | ||
VERSION = (0, 1, 2) | ||
VERSION = (0, 1, 3) | ||
__version__ = '.'.join(str(v) for v in VERSION) | ||
# pylint: disable=invalid-name | ||
default_app_config = 'small_small_hr.apps.SmallSmallHrConfig' # noqa |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Generated by Django 2.1.3 on 2018-12-08 22:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('small_small_hr', '0005_auto_20181115_2112'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='FreeDay', | ||
fields=[ | ||
('id', | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name='ID')), | ||
('name', models.CharField(max_length=255, | ||
verbose_name='Name')), | ||
('date', models.DateField(unique=True, verbose_name='Date')), | ||
], | ||
options={ | ||
'verbose_name': 'Free Day', | ||
'verbose_name_plural': 'Free Days', | ||
'ordering': ['-date'], | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='annualleave', | ||
options={ | ||
'ordering': ['-year', 'leave_type', 'staff'], | ||
'verbose_name': 'Annual Leave', | ||
'verbose_name_plural': 'Annual Leave' | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='leave', | ||
options={ | ||
'ordering': ['staff', '-start'], | ||
'verbose_name': 'Leave', | ||
'verbose_name_plural': 'Leave' | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='overtime', | ||
options={ | ||
'ordering': ['staff', '-date', 'start'], | ||
'verbose_name': 'Overtime', | ||
'verbose_name_plural': 'Overtime' | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='staffdocument', | ||
options={ | ||
'ordering': ['staff', 'name', '-created'], | ||
'verbose_name': 'Staff Document', | ||
'verbose_name_plural': 'Staff Documents' | ||
}, | ||
), | ||
migrations.AlterField( | ||
model_name='annualleave', | ||
name='year', | ||
field=models.PositiveIntegerField( | ||
choices=[(2017, 2017), (2018, 2018), (2019, 2019), (2020, | ||
2020), | ||
(2021, 2021), (2022, 2022), (2023, 2023), (2024, | ||
2024), | ||
(2025, 2025), (2026, 2026), (2027, 2027)], | ||
db_index=True, | ||
default=2018, | ||
verbose_name='Year'), | ||
), | ||
] |
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
Oops, something went wrong.