Include BillRecords in the admin
This commit is contained in:
parent
721472b416
commit
8a17ee6de5
4 changed files with 128 additions and 21 deletions
33
uncloud_pay/migrations/0002_auto_20200621_1335.py
Normal file
33
uncloud_pay/migrations/0002_auto_20200621_1335.py
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Generated by Django 3.0.6 on 2020-06-21 13:35
|
||||
|
||||
from django.db import migrations, models
|
||||
import uncloud_pay.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('uncloud_pay', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='bill',
|
||||
name='due_date',
|
||||
field=models.DateField(default=uncloud_pay.models.default_payment_delay),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='bill',
|
||||
name='ending_date',
|
||||
field=models.DateTimeField(default=uncloud_pay.models.end_of_this_month),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='bill',
|
||||
name='starting_date',
|
||||
field=models.DateTimeField(default=uncloud_pay.models.start_of_this_month),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name='bill',
|
||||
constraint=models.UniqueConstraint(fields=('owner', 'starting_date', 'ending_date'), name='one_bill_per_month_per_user'),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue