mirror of
https://github.com/pretix/pretix.git
synced 2026-08-12 11:07:02 +00:00
Fix custom pycountry_add index handling (#5869)
This commit is contained in:
@@ -148,4 +148,7 @@ def pycountry_add(db, **kw):
|
||||
continue
|
||||
value = value.lower()
|
||||
index = db.indices.setdefault(key, {})
|
||||
index.setdefault(value, set()).add(obj)
|
||||
if key in ["country_code"]:
|
||||
index.setdefault(value, set()).add(obj)
|
||||
else:
|
||||
index[value] = obj
|
||||
|
||||
Reference in New Issue
Block a user