Commit ddd408c2 authored by Jean-Baptiste's avatar Jean-Baptiste

update: fix Operational Error on fresh db creation

parent 286f1109
Pipeline #5930 passed with stage
in 1 minute and 21 seconds
from django.apps import AppConfig
from django.db import OperationalError
class DjangoldpConfig(AppConfig):
......@@ -21,3 +22,6 @@ class DjangoldpConfig(AppConfig):
existing_source = LDPSource.objects.get(federation=path)
except LDPSource.DoesNotExist:
LDPSource.objects.create(federation=path, urlid=Model.absolute_url(model_class))
except OperationalError:
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment