imdb id sort

This commit is contained in:
j 2019-08-02 13:15:51 +02:00
parent 9a6b9a0bbb
commit df5dabbec5

View file

@ -939,6 +939,8 @@ class Item(models.Model):
s.oxdbId = self.oxdbId
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)))
else:
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()
s.rightslevel = self.level