slice fk migrations
This commit is contained in:
parent
e3b1060624
commit
0b32c1d20d
19
qrtr_account/migrations/0016_slice_bank_acc.py
Normal file
19
qrtr_account/migrations/0016_slice_bank_acc.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.2.3 on 2023-08-31 02:45
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('qrtr_account', '0015_alter_bankaccount_institution'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='slice',
|
||||
name='bank_acc',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='qrtr_account.bankaccount'),
|
||||
),
|
||||
]
|
||||
@ -71,7 +71,7 @@ class Slice(models.Model):
|
||||
limit_choices_to=avail_parents,
|
||||
on_delete=models.CASCADE, null=True, blank=True)
|
||||
parent_id = models.PositiveIntegerField(null=True)
|
||||
bank_acc = models.ForeignKey(null=True, blank=True)
|
||||
bank_acc = models.ForeignKey(BankAccount, on_delete=models.CASCADE, null=True, blank=True)
|
||||
is_unsliced = models.BooleanField(default=False)
|
||||
slice_of = GenericForeignKey('parent_type', 'parent_id')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user