diff --git a/pandora/item/models.py b/pandora/item/models.py index ef86550d..5c9f4e40 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -886,7 +886,7 @@ class Item(models.Model): #sort keys based on database, these will always be available s.public_id = self.public_id.replace('0x', 'xx') s.oxdbId = self.oxdbId - if not settings.USE_IMDB: + if not settings.USE_IMDB and s.public_id.isupper() and s.public_id.isalpha(): s.public_id = ox.sort_string(str(ox.fromAZ(s.public_id))) s.modified = self.modified or datetime.now() s.created = self.created or datetime.now()