From a05cd5e8f12ca047809b1713355575c7c516414a Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Wed, 14 Aug 2019 22:51:34 +0100 Subject: [PATCH] Removing unique constraint on remote URLs, for now --- .../migrations/0006_auto_20190814_2151.py | 18 ++++++++++++++++++ django_kepi/models/thing.py | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 django_kepi/migrations/0006_auto_20190814_2151.py diff --git a/django_kepi/migrations/0006_auto_20190814_2151.py b/django_kepi/migrations/0006_auto_20190814_2151.py new file mode 100644 index 0000000..fc05aa4 --- /dev/null +++ b/django_kepi/migrations/0006_auto_20190814_2151.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.1 on 2019-08-14 21:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('django_kepi', '0005_incomingmessage_digest'), + ] + + operations = [ + migrations.AlterField( + model_name='object', + name='remote_url', + field=models.URLField(blank=True, default=None, max_length=255, null=True), + ), + ] diff --git a/django_kepi/models/thing.py b/django_kepi/models/thing.py index 592e59a..20434e5 100644 --- a/django_kepi/models/thing.py +++ b/django_kepi/models/thing.py @@ -45,7 +45,6 @@ class Object(PolymorphicModel): remote_url = models.URLField( max_length=255, - unique=True, null=True, blank=True, default=None,