litchfield / django-liststyle Goto Github PK
View Code? Open in Web Editor NEWStyle your django admin changelist rows with ease!
License: BSD 3-Clause "New" or "Revised" License
Style your django admin changelist rows with ease!
License: BSD 3-Clause "New" or "Revised" License
Hey, it seems like the version of this that's on pip right now is outdated-- it doesn't work with python3. The version here already seems to have the error fixed. I'm not sure whose responsibility it is to update packages on pip, but I thought I'd bring this to your attention.
Thanks.
Hi, loading cycle
from future leads to an error at least on django 1.10. Since this is anyway deprecated since 1.8 I'd suggest to simply remove the statement. Everything else work great under 1.10
I've sent a trivial PR here #11
many thanks, regards
pip install django-liststyle or easy_install django-liststyle does not work me?
What's the package name?
I'm using
Django==1.11.5
python2.7
django-liststyle==0.2b
not working with django-liststyle==0.2b0
as well
In My settings:
INSTALLED_APPS = [
'liststyle', # required to be above 'django.contrib.admin'
# default
'django.contrib.admin',
In my admin.py file
class MyAdmin(ListStyleAdminMixin, admin.ModelAdmin):
class Meta:
model = MyModel
def get_row_css(self, obj, index):
1/0 # doesn't break in here
if obj.status == STATUS_REJECTED:
return 'red red%d' % index
elif obj.status == STATUS_WAITING:
return 'orange orange%d' % index
return ''
TemplateSyntaxError: 'future' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_static
admin_urls
cache
highlighting
i18n
indent_text
l10n
liststyle_tags
log
rest_framework
static
staticfiles
syntax_color
thumbnail
truncate_letters
tz
widont
if you need additional information please ask
In the readme:
class MyModelAdmin(admin.ModelAdmin, ListStyleAdminMixin):
I was under the impression it should be:
class MyModelAdmin(ListStyleAdminMixin, admin.ModelAdmin):
(If I'm wrong I'd better go and check a huge bunch of my code!)
Seems does not works on Django 1.9.
Hello.
My env is:
2.0.6
3.6.4
Traceback:
Error during template rendering
In template /Users/my_user/.local/share/virtualenvs/my_project-fiOUaYzG/lib/python3.6/site-packages/liststyle/templates/admin/change_list_results.html, error at line 2
'future' is not a registered tag library. Must be one of: active_state admin_interface_tags admin_list admin_modify admin_static admin_tags admin_urls bulma_form_elements cache compat django_rq hijack_tags i18n jquery_path l10n liststyle_tags log math_operations object_name rest_framework static staticfiles tz
On line 2 of ./liststyle/templates/admin/change_list_results.html
:
{% load i18n admin_static %}{% load cycle from future %}
Please, can you add full support Django 2.x?
Can u provide an example please on how to change a text field in list_display based on a condition of which choices are passed?
i.e field Status could have "new", "closed"
How can I change the color based on the value
say if "closed" green
if new "yellow"
Thanks a lot.
It would be very convenient to load it up as any other dependency
Just installed this using pip. Followed all the steps in the readme and I get this error:
TemplateSyntaxError at /admin/applicants/applicant/
'admin_static' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_urls
bootstrap4
cache
humanize
i18n
import_export_tags
l10n
liststyle_tags
log
notifications_tags
static
tags
tz
widget_tweaks
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.