摘要: 添加按钮 <div class="pull-left"><a href="{% url 'price_policy_add' %}" class="btn-success btn" style="margin-bottom: 10px"><i class="fa fa-plus-square-o"> 阅读全文
posted @ 2022-09-13 20:59 Sherwin_szw 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 前端 <table class="table table-hover table-bordered"> <tr> <th>序号</th> <th>数量</th> <th>价格</th> </tr> {% for one in queryset %} <tr user-id="{{ one.id }} 阅读全文
posted @ 2022-09-13 20:39 Sherwin_szw 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 前端 <nav aria-label="Page navigation"> <ul class="pagination"> {{ html_str }} </ul> </nav> 后端 分页组件 from django.utils.safestring import mark_safe import 阅读全文
posted @ 2022-09-13 17:12 Sherwin_szw 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 后端 from django.db.models import Q def user_list(request): if request.method == 'GET': keywords = request.GET.get('keywords').strip() con = Q() if keyw 阅读全文
posted @ 2022-09-13 16:12 Sherwin_szw 阅读(23) 评论(0) 推荐(0) 编辑