django guardian 权限控制测试
摘要:导入modelIn [1]: from guardian.shortcuts import *In [2]: from resources.models import *In [3]: from django.contrib.auth.models import *获取id为2 的 userIn [...
阅读全文
posted @ 2013-01-16 16:58
posted @ 2013-01-16 16:58