Giter Club home page Giter Club logo

django-admin-filtrate's People

Contributors

runekaagaard avatar zxl634 avatar

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  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  avatar  avatar

django-admin-filtrate's Issues

filtrate.js is Blank

I've almost got this working but I'm getting some JS errors which I think are caused by the emptyness of filtrate.js. Can you recommit this file?

I've also made a few changes to get the code working with my install of Django 1.3. I'll clone and send you a pull request once I get it all working.

Thanks!

Load external scripts without specifying a protocol

Currently the external scripts are loaded using https and http. This breaks if the site runs using https because non-https assets can't be loaded then.

Please remove all protocols from the asset URL's.
Like this:

    class Media():
        js = (
            '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js',
            '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/i18n/jquery-ui-i18n.min.js',
            'filtrate/js/daterangefilter.js',
        )
        css = {'all': ('//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/flick/jquery-ui.css',)}

This allows the site to use any protocol and the assets are loaded using the same protocol.

Thanks!

is field_name supposed to be a string?

In bug #3 you said that field_name is a string. But in __init__.py:20: setattr(field, unique_name, True) which gives
AttributeError: 'str' object has no attribute 'orders_models_OrderDateFilter' in my case.
Django 1.3.1, latest filtrate.
Code:

class OrderDateFilter(filters.DateRangeFilter):
    field_name = 'object__date'

    def get_title(self):
        return u"по дате"

# in model
    object = models.ForeignKey(Event, verbose_name=u'событие')
    register_filter('object__date', OrderDateFilter)

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.