add workplace option
This commit is contained in:
27
work/migrations/0003_auto_20201228_1744.py
Normal file
27
work/migrations/0003_auto_20201228_1744.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# Generated by Django 3.1.2 on 2020-12-28 16:44
|
||||
|
||||
from django.conf import settings
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('work', '0002_hoursinput_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='hoursinput',
|
||||
name='user',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='hoursinput',
|
||||
name='hours_number',
|
||||
field=models.IntegerField(validators=[django.core.validators.MaxValueValidator(15, 'Niemożliwe, że tyle pracowałeś'), django.core.validators.MinValueValidator(0, 'Wprowadź liczbę dodatnią 0-15')]),
|
||||
),
|
||||
]
|
||||
20
work/migrations/0004_workplaceinput.py
Normal file
20
work/migrations/0004_workplaceinput.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.1.2 on 2020-12-28 17:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('work', '0003_auto_20201228_1744'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='WorkplaceInput',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('workplace', models.CharField(max_length=100)),
|
||||
],
|
||||
),
|
||||
]
|
||||
Binary file not shown.
BIN
work/migrations/__pycache__/0004_workplaceinput.cpython-38.pyc
Normal file
BIN
work/migrations/__pycache__/0004_workplaceinput.cpython-38.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user