Browse Source

Signed-off-by: zry <admin@z-touhou.org>

zry 8 years ago
parent
commit
0038c7bcbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/admin.html

+ 1 - 1
templates/admin.html

@@ -25,7 +25,7 @@
 <div class="well well-lg"  style="background:#FFF; color:#000">
     <h3>您在后台拥有如下权限:</h3>
     <ul>
-        {% for i in request.user.role.permission.objects.all %}
+        {% for i in request.user.role.permission.all %}
         <li>{{i.name}} ({{i.url}})</li>
         {% endfor %}
     </ul>