fix left's users logout (#446)

* fix left's users logout

* fix issues 445
pull/453/head
njqaaa 2017-05-25 14:12:16 +08:00 committed by 老广
parent 18169251fa
commit dd6c82b168
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ class SystemUser(models.Model):
for asset in asset_group.assets.all():
setattr(asset, 'is_inherit_from_asset_groups', True)
setattr(asset, 'inherit_from_asset_groups',
getattr(asset, b'inherit_from_asset_groups', set()).add(asset_group))
getattr(asset, 'inherit_from_asset_groups', set()).add(asset_group))
assets.add(asset)
return assets

View File

@ -19,7 +19,7 @@
<li><a href="{% url 'users:user-profile' %}">{% trans 'Profile' %}</a></li>
<li><a href="{% url 'users:user-profile-update' %}">{% trans 'Profile settings' %}</a></li>
<li class="divider"></li>
<li><a href="">{% trans 'Logout' %}</a></li>
<li><a href="{% url 'users:logout' %}">{% trans 'Logout' %}</a></li>
</ul>
</div>
<div class="logo-element">