Giter Club home page Giter Club logo

django-liststyle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-liststyle's Issues

Update this package pypi?

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.

"cycle" templatetag no longer lives in future

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

row styling with get_row_css failing

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

Don't mixins come first?

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!)

[Support Django 2.x] TemplateSyntaxError: 'future' is not a registered tag library

Hello.

My env is:

  • Django 2.0.6
  • Python 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?

Example please ?

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.

TemplateSyntaxError

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

The line in question:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.