- 博客(7)
- 问答 (1)
- 收藏
- 关注
原创 Django template使用Bootstrap实现分页功能
关于Django template自定义分页器功能实现Bootstrap 源码地址:(https://github.com/thinksea/bootstrap-pagination)下载源码:git clone https://github.com/thinksea/bootstrap-pagination或者用链接打开去下载zip。这个不再描述或者然后将code放在你自己想放的位置。我一般放在project下的static/文件下,如图:3.然后在你的template/index.h
2020-08-07 10:20:18
490
原创 Django自定义html按日期filter data
关于django框架自定义日期筛选按钮见解,代码逻辑可能不是很好。欢迎大佬指点!HTML代码<div style="margin: 0 auto"> From      <input type="date" id="fromDate" oninput="fromfunction()">    &am
2020-07-27 15:07:03
300
原创 Python list中dist统计
#关于Python中list里的dist按照某一个key相同的value统计另一个key的value个人简述。代码不是很优美,欢迎大佬指点lst = [{"name": "Apple", "qty": 10}, {"name": "Apple", "qty": 5}, {"name": "Orange", "qty": 5}]res = set([i["name"] for i in lst])newLis = []for r in res: qty = 0 for i in lst
2020-07-21 17:45:36
862
原创 odoo11 odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4,
##odoo模型权限问题如果是get /web/image?mode=&filed=&id=获取不到图片出现Access Denied by ACLs for operation: read, uid: 4,那么在user_id=4的记录加上对应的权限即可,odoo11 res.users表id=4是内置public,url: web/image/为源码内置路径如图:...
2020-07-20 17:51:10
851
原创 [11.0] TypeError: odoo.define is not a function (empty CSS/JS assets)
odoo11,ir_attachment 问题导致.css不加载DELETE FROM ir_attachment WHERE url LIKE '/web/content/%';
2020-07-16 15:34:00
561
原创 postgres联级表delete data
postgres 多表删除DELETE FROM stock_quant q USING product_product p ,product_template t WHERE q.product_id=p.id AND p.product_tmpl_id=t.id AND t.pos_config='6';DELETE FROM pos_order_line l USING product_product p ,product_template t WHERE l.product_id=p.id AN
2020-07-16 11:55:39
167
原创 reportlab实现横线style
teststyle = ParagraphStyle("test", parent=pdf.styles['Normal'], borderWidth=1, borderColor="black")``
2020-07-15 10:57:04
1122
空空如也
Flask python models.py db init error
2021-01-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人