From fa0abcfc76606ba9d7fdabe3096e679b66286372 Mon Sep 17 00:00:00 2001
From: Konrad Mohrfeldt <konrad.mohrfeldt@farbdev.org>
Date: Wed, 30 Aug 2023 17:00:05 +0200
Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20require=20url=20in=20lic?=
 =?UTF-8?q?ense=20admin=20view?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 program/migrations/0069_alter_license_url.py | 17 +++++++++++++++++
 program/models.py                            |  2 +-
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 program/migrations/0069_alter_license_url.py

diff --git a/program/migrations/0069_alter_license_url.py b/program/migrations/0069_alter_license_url.py
new file mode 100644
index 00000000..205ee1a6
--- /dev/null
+++ b/program/migrations/0069_alter_license_url.py
@@ -0,0 +1,17 @@
+# Generated by Django 4.2.2 on 2023-08-30 14:57
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+    dependencies = [
+        ("program", "0068_license_needs_author_and_more"),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name="license",
+            name="url",
+            field=models.URLField(blank=True, default=""),
+        ),
+    ]
diff --git a/program/models.py b/program/models.py
index fb7a9196..a9a14eb8 100644
--- a/program/models.py
+++ b/program/models.py
@@ -118,7 +118,7 @@ class License(models.Model):
     name = models.CharField(max_length=64, help_text="Name of the license")
     needs_author = models.BooleanField(default=True)
     requires_express_permission_for_publication = models.BooleanField(default=True)
-    url = models.URLField(default="")
+    url = models.URLField(default="", blank=True)
 
     class Meta:
         ordering = ("name",)
-- 
GitLab