Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 0243151

Browse files
committed
removed null=True in assopy.Vat.fares as it has no effect on a ManyToMany relationship. This removes the warning to that effect
1 parent 06aaa85 commit 0243151

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 2.2.19 on 2021-05-17 07:32
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('assopy', '0015_remove_refund_models'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='vat',
15+
name='fares',
16+
field=models.ManyToManyField(blank=True, through='assopy.VatFare', to='conference.Fare'),
17+
),
18+
]

assopy/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def create(self, user, payment, items, billing_notes='', coupons=None, country=N
511511
class Vat(models.Model):
512512
fares = models.ManyToManyField(Fare,
513513
through='VatFare',
514-
null=True, blank=True)
514+
blank=True)
515515
value = models.DecimalField(max_digits=5, decimal_places=2)
516516
description = models.CharField(null=True, blank=True, max_length=125)
517517
invoice_notice = models.TextField(null=True, blank=True)

0 commit comments

Comments
 (0)