mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-23 17:18:44 +02:00
refactor: move some fields and widgets around
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Generated by Django 5.1.1 on 2024-09-19 02:11
|
||||
|
||||
import apps.transactions.fields
|
||||
import apps.common.fields.month_year
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
@@ -8,19 +8,31 @@ class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Transaction',
|
||||
name="Transaction",
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('is_paid', models.BooleanField(default=True)),
|
||||
('date', models.DateField()),
|
||||
('reference_date', apps.transactions.fields.MonthYearField(help_text='Please enter a month and year in the format MM/YYYY.')),
|
||||
('description', models.CharField(max_length=500)),
|
||||
('notes', models.TextField(blank=True)),
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("is_paid", models.BooleanField(default=True)),
|
||||
("date", models.DateField()),
|
||||
(
|
||||
"reference_date",
|
||||
apps.common.fields.month_year.MonthYearModelField(
|
||||
help_text="Please enter a month and year in the format MM/YYYY."
|
||||
),
|
||||
),
|
||||
("description", models.CharField(max_length=500)),
|
||||
("notes", models.TextField(blank=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user