Skip to content

Commit

Permalink
Merge pull request #76 from uktrade/LTD-1056-Fix-issue-sending-usaged…
Browse files Browse the repository at this point in the history
…ata-to-LITE

LTD-1056: Remove unique_together constraint on TransactionMapping model
  • Loading branch information
saruniitr authored Jul 30, 2021
2 parents 0ec2de7 + 9718250 commit 617b50e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
17 changes: 17 additions & 0 deletions mail/migrations/0014_auto_20210729_1339.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.23 on 2021-07-29 13:39

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('mail', '0013_auto_20210702_1501'),
]

operations = [
migrations.AlterUniqueTogether(
name='transactionmapping',
unique_together=set(),
),
]
3 changes: 0 additions & 3 deletions mail/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ class TransactionMapping(models.Model):
usage_transaction = models.CharField(null=False, blank=False, max_length=35)
usage_data = models.ForeignKey(UsageData, on_delete=models.DO_NOTHING)

class Meta:
unique_together = [["licence_reference", "line_number", "usage_data"]]


class MailboxConfig(TimeStampedModel):
username = models.TextField(null=False, blank=False, primary_key=True, help_text="Username of the POP3 mailbox")
Expand Down

0 comments on commit 617b50e

Please sign in to comment.