Skip to content

Commit

Permalink
Add country fields to unique_together to fix download
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed May 28, 2024
1 parent 8ac0822 commit 05cd5d1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.13 on 2024-05-28 06:47

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('plugins', '0010_merge_20240517_0729'),
]

operations = [
migrations.AlterUniqueTogether(
name='pluginversiondownload',
unique_together={('plugin_version', 'download_date', 'country_code', 'country_name')},
),
]
4 changes: 3 additions & 1 deletion qgis-app/plugins/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,9 @@ class PluginVersionDownload(models.Model):
class Meta:
unique_together = (
'plugin_version',
'download_date'
'download_date',
'country_code',
'country_name'
)


Expand Down

0 comments on commit 05cd5d1

Please sign in to comment.