X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6d66ceff54d470d238250c73ab484d496bf296db..da2ddd3f782202bed965830379672079547846ff:/apps/api/handlers/library_handlers.py?ds=sidebyside diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index e80d75c6..d7438a18 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -551,7 +551,7 @@ class MergeHandler(BaseHandler): # User is not permitted to make a merge, right away # So we instead create a pull request in the database try: - prq, created = PullRequest.get_or_create( + prq, created = PullRequest.objects.get_or_create( source_revision = str(udoc.revision), defaults = { 'comitter': request.user,