Skip to content
Snippets Groups Projects
Commit ddd408c2 authored by Jean-Baptiste's avatar Jean-Baptiste
Browse files

update: fix Operational Error on fresh db creation

parent 286f1109
No related branches found
No related tags found
No related merge requests found
Pipeline #1122 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment