GithubHelp home page GithubHelp logo

django-multiform's Introduction

django-multiform

To run the tests, use:

$ django-admin.py test --pythonpath=./ --settings=tests.settings

from the project root directory.

django-multiform's People

Contributors

bmispelon avatar davehughes avatar markush 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

Watchers

 avatar  avatar  avatar  avatar  avatar

django-multiform's Issues

Documentation ambiguous

Right now, the code in the documentation looks smth like this:

class FooBarForm(MultiForm):
    base_forms = {
        'foo': FooForm,
        'bar': BarForm
    }

# views.py
from django.views import generic
from .forms import FooBarForm

class FooBarView(generic.FormView):
    form_class = FooBarForm

    def form_valid(self, form):
        form.cleaned_data['foo'] # {'foo': ...}
        form.cleaned_data['bar'] # {'bar': ...}
        return super(FooBarView, self).form_valid(form)
        form.cleaned_data['bar'] # {'bar': ...}

is ambiguous and confused me as it is not clear what 'bar' will retrieve. It could be the form or the field named "bar".

Django 1.10 error

Report this:
File "/home/mjd/.virtualenvs/mjd/lib/python3.4/site-packages/multiform/init.py", line 1, in
from .forms import MultiForm, MultiModelForm
File "/home/mjd/.virtualenvs/mjd/lib/python3.4/site-packages/multiform/forms.py", line 11, in
from django.forms.util import ErrorList
ImportError: No module named 'django.forms.util'

Change to .utils

Random form order

I used MultiModelForm to combine django's UserCreationForm and the ModelForm of my Profile model (same use case as in the doc).

Each time I restart the server, the order in which the forms are rendered is random. Sometimes the UserCreationForm is rendered first then the other, sometimes its the other way around.

Error when using MultiForm in a form wizard

When using MultiForm as the form in one of the entries of the form_list attribute of the Django's WizardView, I'm getting the following error:

'NoneType' object has no attribute 'itervalues'

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.