摘要:
templates模版 阅读全文
posted @ 2018-11-22 17:56
amberLIU
阅读(865)
评论(0)
推荐(0)
摘要:
既根据当前登录人,动态显示对象相关的的select的选项,例如 A登录,只显示A的客户,B登录,只显示B自己的客户 先了解form的ModelChoiceField字段(这个表格没意义,就是引出参数queryset) 默认是显示外键关联表的所有字段,queryset=objects.all() 然后 阅读全文
posted @ 2018-11-22 17:18
amberLIU
阅读(517)
评论(0)
推荐(0)
摘要:
request的属性 request的方法 /* 1.HttpRequest.get_full_path() 返回 path,如果可以将加上查询字符串。 例如:"/music/bands/the_beatles/?print=true" 2.HttpRequest.is_ajax() 如果请求是通过 阅读全文
posted @ 2018-11-22 11:43
amberLIU
阅读(7427)
评论(0)
推荐(0)

浙公网安备 33010602011771号