From 8e5c67e207e5d77ffc546bfc3d125129935ad55f Mon Sep 17 00:00:00 2001
From: Brad Ison <bison@coreos.com>
Date: Wed, 28 Feb 2018 17:19:10 -0500
Subject: [PATCH] Use get_or_create in place of create_or_get

Peewee v2.9.0 removes the create_or_get method.
---
 data/model/release.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/data/model/release.py b/data/model/release.py
index 9427f1e71..f827eaeb0 100644
--- a/data/model/release.py
+++ b/data/model/release.py
@@ -2,10 +2,10 @@ from data.database import QuayRelease, QuayRegion, QuayService
 
 
 def set_region_release(service_name, region_name, version):
-  service, _ = QuayService.create_or_get(name=service_name)
-  region, _ = QuayRegion.create_or_get(name=region_name)
+  service, _ = QuayService.get_or_create(name=service_name)
+  region, _ = QuayRegion.get_or_create(name=region_name)
 
-  return QuayRelease.create_or_get(service=service, version=version, region=region)
+  return QuayRelease.get_or_create(service=service, version=version, region=region)
 
 
 def get_recent_releases(service_name, region_name):