Merge branch 'v2' into v2-gamechanger

# Conflicts:
#	config/settings/base.py
This commit is contained in:
2022-06-08 07:09:14 -05:00
9 changed files with 79 additions and 83 deletions

View File

@@ -23,7 +23,7 @@ def _update_or_create_site_with_sequence(site_model, connection, domain, name):
# site is created.
# To avoid this, we need to manually update DB sequence and make sure it's
# greater than the maximum value.
max_id = site_model.objects.order_by('-id').first().id
max_id = site_model.objects.order_by("-id").first().id
with connection.cursor() as cursor:
cursor.execute("SELECT last_value from django_site_id_seq")
(current_id,) = cursor.fetchone()