GithubHelp home page GithubHelp logo

Comments (4)

brutasse avatar brutasse commented on May 27, 2024

This is interesting -- IMO you shouldn't iterate over existing forms, but rather define a "Range" widget with a MutliValueField that converts the bounds to a proper python list (perhaps that's what you meant and I misunderstood you :).

I wouldn't add this to the core library though, it looks like a very nice fit for the examples section in the docs: there already are a couple of jQueryUI examples.

Would you like to make a docs pach? If you need any help on this let me know.

from django-floppyforms.

mountainpaul avatar mountainpaul commented on May 27, 2024

Actually, I'm only using one form, and then modifying the model etc. prior to construction of the form. I would prefer to do what you suggest, but I have a lot of fields, and quite a few different models. So it is simpler to create all this on the fly. This is probably somewhat similar to what Alex was doing with https://github.com/alex/django-filter.

A multi field widget is probably a better solution, but then I need to write more javascript (there is already a jquery plugin for a single field). Actually, this combined with what Alex did might be a good idea.

from django-floppyforms.

mountainpaul avatar mountainpaul commented on May 27, 2024

If I can get sometime and things a little better polished I'll do a docs patch.

from django-floppyforms.

gregmuellegger avatar gregmuellegger commented on May 27, 2024

Hi I'm closing this ticket now since it seems that you somehow solved this issue for yourself. If you have any doc patches ready or additional questions then feel free to re-open this ticket.

from django-floppyforms.

Related Issues (20)

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.