first comit
This commit is contained in:
65
hrm/migrations/0001_initial.py
Normal file
65
hrm/migrations/0001_initial.py
Normal file
@@ -0,0 +1,65 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-19 15:39
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='pay_structure',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('rate', models.CharField(blank=True, max_length=300, null=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='department',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('manager', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='manager', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='employee',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('preferred_name', models.CharField(blank=True, max_length=150, null=True)),
|
||||
('job_title', models.CharField(blank=True, max_length=100, null=True)),
|
||||
('contact_number', models.CharField(blank=True, max_length=15, null=True)),
|
||||
('address_street', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('address_city', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('address_country', models.CharField(blank=True, default='United Kingdom', max_length=300, null=True)),
|
||||
('address_postcode', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('emergency_contact_name', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('emergency_contact_relationship', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('emergency_contact_address_street', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('emergency_contact_address_city', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('emergency_contact_address_country', models.CharField(blank=True, default='United Kingdom', max_length=300, null=True)),
|
||||
('emergency_contact_address_postcode', models.CharField(blank=True, max_length=300, null=True)),
|
||||
('emergency_contact_phone_number', models.CharField(blank=True, max_length=15, null=True)),
|
||||
('emergency_contact_alternative_number', models.CharField(blank=True, max_length=15, null=True)),
|
||||
('holiday_days_allocated', models.IntegerField(default=28)),
|
||||
('holiday_days_remaining', models.IntegerField(default=28)),
|
||||
('salary', models.CharField(blank=True, max_length=100, null=True)),
|
||||
('contract_start_date', models.DateField(auto_now_add=True)),
|
||||
('contract_end_date', models.DateField(blank=True, null=True)),
|
||||
('employee_company', models.CharField(blank=True, max_length=150, null=True)),
|
||||
('employee_vat_number', models.CharField(blank=True, max_length=150, null=True)),
|
||||
('department', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='department', to=settings.AUTH_USER_MODEL)),
|
||||
('employee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='employee', to=settings.AUTH_USER_MODEL)),
|
||||
('line_manager', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='line_manager', to=settings.AUTH_USER_MODEL)),
|
||||
('pay_structure', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='pay_structure', to='hrm.pay_structure')),
|
||||
],
|
||||
),
|
||||
]
|
||||
19
hrm/migrations/0002_alter_employee_department.py
Normal file
19
hrm/migrations/0002_alter_employee_department.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-19 15:41
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='employee',
|
||||
name='department',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='department', to='hrm.department'),
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0003_alter_pay_structure_rate.py
Normal file
18
hrm/migrations/0003_alter_pay_structure_rate.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-19 15:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0002_alter_employee_department'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='pay_structure',
|
||||
name='rate',
|
||||
field=models.CharField(blank=True, choices=[('Once', 'One Off'), ('Day', 'Daily'), ('Week', 'Monthly'), ('Month', 'Monthly')], max_length=300, null=True),
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0004_alter_employee_contract_start_date.py
Normal file
18
hrm/migrations/0004_alter_employee_contract_start_date.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-19 15:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0003_alter_pay_structure_rate'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='employee',
|
||||
name='contract_start_date',
|
||||
field=models.DateField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
19
hrm/migrations/0005_employee_signature.py
Normal file
19
hrm/migrations/0005_employee_signature.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-19 15:48
|
||||
|
||||
import jsignature.fields
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0004_alter_employee_contract_start_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='employee',
|
||||
name='signature',
|
||||
field=jsignature.fields.JSignatureField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
26
hrm/migrations/0006_company_employee_company.py
Normal file
26
hrm/migrations/0006_company_employee_company.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-19 18:17
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0005_employee_signature'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='company',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(blank=True, max_length=300, null=True)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='employee',
|
||||
name='company',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='company', to='hrm.company'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,43 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-19 18:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0006_company_employee_company'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='address_city',
|
||||
field=models.CharField(blank=True, max_length=300, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='address_country',
|
||||
field=models.CharField(blank=True, default='United Kingdom', max_length=300, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='address_postcode',
|
||||
field=models.CharField(blank=True, max_length=300, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='address_street',
|
||||
field=models.CharField(blank=True, max_length=300, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='contact_number',
|
||||
field=models.CharField(blank=True, max_length=15, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='vat_number',
|
||||
field=models.CharField(blank=True, max_length=300, null=True),
|
||||
),
|
||||
]
|
||||
22
hrm/migrations/0008_alter_company_options_employee_email.py
Normal file
22
hrm/migrations/0008_alter_company_options_employee_email.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 10:29
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0007_company_address_city_company_address_country_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='company',
|
||||
options={'verbose_name_plural': 'Companies'},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='employee',
|
||||
name='email',
|
||||
field=models.EmailField(blank=True, max_length=254, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 13:55
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0008_alter_company_options_employee_email'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='employee',
|
||||
name='pay_structure',
|
||||
field=models.CharField(blank=True, choices=[('Once', 'One Off'), ('Day', 'Daily'), ('Week', 'Monthly'), ('Month', 'Monthly'), ('Invoice', 'Invoice')], max_length=300, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='employee',
|
||||
name='pay_rate',
|
||||
field=models.CharField(blank=True, max_length=100, null=True),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='pay_structure',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 14:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('auth', '0012_alter_user_first_name_max_length'),
|
||||
('hrm', '0009_alter_employee_pay_structure_employee_pay_rate_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='employee',
|
||||
name='groups',
|
||||
field=models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='employee_set', related_query_name='employee', to='auth.group', verbose_name='groups'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='employee',
|
||||
name='pay_structure',
|
||||
field=models.CharField(blank=True, choices=[('Once', 'One Off'), ('Daily', 'Daily'), ('Weekly', 'Weekly'), ('Monthly', 'Monthly'), ('Invoice', 'Invoice')], max_length=300, null=True),
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0011_employee_sick_days_taken.py
Normal file
18
hrm/migrations/0011_employee_sick_days_taken.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 18:02
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0010_employee_groups_alter_employee_pay_structure'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='employee',
|
||||
name='sick_days_taken',
|
||||
field=models.IntegerField(default=0),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 18:14
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0011_employee_sick_days_taken'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='employee',
|
||||
old_name='sick_days_taken',
|
||||
new_name='days_absent',
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='absence_days',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('days_taken', models.IntegerField(default=0)),
|
||||
('date_from', models.DateField(blank=True, null=True)),
|
||||
('date_to', models.DateField(blank=True, null=True)),
|
||||
('authorised', models.BooleanField(default=False)),
|
||||
('authorised_by', models.OneToOneField(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='authorised_by', to='hrm.employee')),
|
||||
('taken_by', models.OneToOneField(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='taken_by', to='hrm.employee')),
|
||||
],
|
||||
),
|
||||
]
|
||||
27
hrm/migrations/0013_alter_absence_days_options_and_more.py
Normal file
27
hrm/migrations/0013_alter_absence_days_options_and_more.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 18:27
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0012_rename_sick_days_taken_employee_days_absent_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='absence_days',
|
||||
options={'verbose_name_plural': 'Absence Days'},
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='employee',
|
||||
old_name='days_absent',
|
||||
new_name='days_absent_authorised',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='employee',
|
||||
name='days_absent_unauthorised',
|
||||
field=models.IntegerField(default=0),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 18:32
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0013_alter_absence_days_options_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='absence_days',
|
||||
name='authorised_by',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='absence_days',
|
||||
name='taken_by',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='absence_days',
|
||||
name='authorised_by',
|
||||
field=models.ManyToManyField(blank=True, default=None, null=True, related_name='authorised_by', to='hrm.employee'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='absence_days',
|
||||
name='taken_by',
|
||||
field=models.ManyToManyField(blank=True, default=None, null=True, related_name='taken_by', to='hrm.employee'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,32 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-21 18:34
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0014_remove_absence_days_authorised_by_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='absence_days',
|
||||
name='authorised_by',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='absence_days',
|
||||
name='taken_by',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='absence_days',
|
||||
name='authorised_by',
|
||||
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='authorised_by', to='hrm.employee'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='absence_days',
|
||||
name='taken_by',
|
||||
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='taken_by', to='hrm.employee'),
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0016_company_departments.py
Normal file
18
hrm/migrations/0016_company_departments.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 09:58
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0015_remove_absence_days_authorised_by_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='departments',
|
||||
field=models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='department_set', related_query_name='departments', to='hrm.department', verbose_name='departments'),
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0017_alter_company_name.py
Normal file
18
hrm/migrations/0017_alter_company_name.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 10:22
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0016_company_departments'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='name',
|
||||
field=models.CharField(blank=True, max_length=300, null=True, unique=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 11:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0017_alter_company_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='absence_days',
|
||||
name='is_holiday',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='absence_days',
|
||||
name='is_request',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
19
hrm/migrations/0019_company_year_start_date.py
Normal file
19
hrm/migrations/0019_company_year_start_date.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 11:49
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0018_absence_days_is_holiday_absence_days_is_request_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='year_start_date',
|
||||
field=models.DateField(default=datetime.date(1971, 1, 1)),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 11:56
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0019_company_year_start_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='absence_days',
|
||||
name='is_holiday',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='absence_days',
|
||||
name='reason',
|
||||
field=models.CharField(blank=True, choices=[('hol', 'Holiday'), ('sick', 'Sick'), ('mat', 'Maternity'), ('pat', 'Paternity'), ('other', 'Other')], max_length=50, null=True),
|
||||
),
|
||||
]
|
||||
21
hrm/migrations/0021_homepage_links.py
Normal file
21
hrm/migrations/0021_homepage_links.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 15:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0020_remove_absence_days_is_holiday_absence_days_reason'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='homepage_links',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(blank=True, default=None, help_text='This is the text that will appear on the homepage.', max_length=100, null=True)),
|
||||
('link', models.URLField()),
|
||||
],
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0022_homepage_links_enabled.py
Normal file
18
hrm/migrations/0022_homepage_links_enabled.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 15:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0021_homepage_links'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='homepage_links',
|
||||
name='enabled',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0023_alter_homepage_links_link.py
Normal file
18
hrm/migrations/0023_alter_homepage_links_link.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 15:56
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0022_homepage_links_enabled'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='homepage_links',
|
||||
name='link',
|
||||
field=models.CharField(blank=True, max_length=200, null=True),
|
||||
),
|
||||
]
|
||||
18
hrm/migrations/0024_alter_company_departments.py
Normal file
18
hrm/migrations/0024_alter_company_departments.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-02-22 18:51
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0023_alter_homepage_links_link'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='departments',
|
||||
field=models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='company_set', related_query_name='company', to='hrm.department', verbose_name='departments'),
|
||||
),
|
||||
]
|
||||
0
hrm/migrations/__init__.py
Executable file
0
hrm/migrations/__init__.py
Executable file
BIN
hrm/migrations/__pycache__/0001_initial.cpython-310.pyc
Normal file
BIN
hrm/migrations/__pycache__/0001_initial.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
hrm/migrations/__pycache__/0021_homepage_links.cpython-310.pyc
Normal file
BIN
hrm/migrations/__pycache__/0021_homepage_links.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
hrm/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
hrm/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user