Ho messo un attribute error che non era vero
This commit is contained in:
@@ -83,7 +83,7 @@ class Theme(models.Model):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return user_theme_manager.filter(user=user, theme__active=True).first().theme
|
return user_theme_manager.filter(user=user, theme__active=True).first().theme
|
||||||
except AttributeError as e:
|
except:
|
||||||
obj = objs_active_ls[-1]
|
obj = objs_active_ls[-1]
|
||||||
obj.set_active()
|
obj.set_active()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user