imdb id sort
This commit is contained in:
parent
9a6b9a0bbb
commit
df5dabbec5
1 changed files with 2 additions and 0 deletions
|
@ -939,6 +939,8 @@ class Item(models.Model):
|
||||||
s.oxdbId = self.oxdbId
|
s.oxdbId = self.oxdbId
|
||||||
if not settings.USE_IMDB and s.public_id.isupper() and s.public_id.isalpha():
|
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.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.modified = self.modified or datetime.now()
|
||||||
s.created = self.created or datetime.now()
|
s.created = self.created or datetime.now()
|
||||||
s.rightslevel = self.level
|
s.rightslevel = self.level
|
||||||
|
|
Loading…
Reference in a new issue