vip68 / xadmin_bugfix Goto Github PK
View Code? Open in Web Editor NEW基于原版xadmin修改,修复原版已知bug,适配Python(3.6, 3.7, 3.8, 3.9) + Django(2.2, 3.0, 3.1)
Home Page: https://v88v.cnblogs.com
License: BSD 3-Clause "New" or "Revised" License
基于原版xadmin修改,修复原版已知bug,适配Python(3.6, 3.7, 3.8, 3.9) + Django(2.2, 3.0, 3.1)
Home Page: https://v88v.cnblogs.com
License: BSD 3-Clause "New" or "Revised" License
win10 x64
python 3.7.5 x86
pip list
asgiref 3.3.1 defusedxml 0.6.0 diff-match-patch 20200713 Django 3.0 django-ckeditor 6.0.0 django-crispy-forms 1.10.0 django-formtools 2.2 django-import-export 2.5.0 django-js-asset 1.2.2 django-reversion 3.0.8 et-xmlfile 1.0.1 future 0.18.2 httplib2 0.18.1 jdcal 1.4.1 MarkupPy 1.14 odfpy 1.4.1 openpyxl 3.0.5 pip 20.2.4 pytz 2020.5 PyYAML 5.3.1 setuptools 51.0.0 six 1.15.0 sqlparse 0.4.1 tablib 3.0.0 wheel 0.35.1 xlrd 2.0.1 XlsxWriter 1.3.7 xlwt 1.3.0
复制xadmin 到demo目录
python manage.py makemigrations时提示
File "D:\webroot\xadmin_bugfix\demo_app\xadmin\plugins\importexport.py", line 48, in <module> from import_export.admin import DEFAULT_FORMATS, SKIP_ADMIN_LOG, TMP_STORAGE_CLASS ImportError: cannot import name 'SKIP_ADMIN_LOG' from 'import_export.admin' (D:\Envs\testxadmin\lib\site-packages\import_export\admin.py)
环境是新建的
修复方法已经找到,注销掉decode()
即注释掉第79行
content = content.decode()
步骤:设置一个field为'm2m_transfer'时出错
错误原因:renderer为不能识别的参数
修改方法:
原行: def render(self, name, value, attrs=None, choices=()):
修改为:def render(self, name, value, attrs=None, choices=(), renderer=None):
请问部分控件的文字部分不能转换成中文怎么办?比如过滤器Filter和书签BookMarks,还有主页Main Dashboard都没有翻译成中文,我查看源码都trans了啊,为什么他们还是处于英文状态呢?
xadmin.widget.select-transfer.js
第172行修改为:
box.options[i].selected = true;
然后在第73行前添加:
if (box == this.to_box) { this.to_box[0].options[0].selected = true; }
修复的bug是必须点击一下右侧选中框才能提交这个问题。
xadmin的inlines的readonly_fields不生效,求教大佬
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.