feat: submission confirmation and payment locking
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.2.8 on 2025-11-08 17:35
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('claims', '0004_project_claim_project'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='claim',
|
||||
name='paid_at',
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='claim',
|
||||
name='paid_by',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='claims_marked_paid', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='claimlog',
|
||||
name='action',
|
||||
field=models.CharField(choices=[('created', 'Submitted'), ('status_changed', 'Status changed'), ('marked_paid', 'Marked as paid')], max_length=32),
|
||||
),
|
||||
]
|
||||
25
claims/migrations/0006_systemsetting.py
Normal file
25
claims/migrations/0006_systemsetting.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# Generated by Django 5.2.8 on 2025-11-08 17:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('claims', '0005_claim_paid_at_claim_paid_by_alter_claimlog_action'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='SystemSetting',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('internal_payments_enabled', models.BooleanField(default=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Systeminställning',
|
||||
'verbose_name_plural': 'Systeminställningar',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user