refactor: move some fields and widgets around

This commit is contained in:
Herculino Trotta
2024-10-10 22:37:10 -03:00
parent d2cd115751
commit 5b66ac7fac
8 changed files with 110 additions and 69 deletions

View File

@@ -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)),
],
),
]