Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Generic view to fill a batch of identical forms from the cells of an uploaded file (csv/xlsx/odt).
Python CSS
Branch: master
Failed to load latest commit information.
batchform Rename tests for new Django versions
dev Fix logging settings.
.gitignore
.travis.yml Update travis target Django versions
ChangeLog Add LICENSE & co, rename package.
LICENSE
MANIFEST.in
README.rst
dev_requirements.txt
manage.py
requirements.txt
setup.py Fix setup.py post-setuptools/distribute merge.

README.rst

django-batchform

This project aims to provide a simple yet powerful way to fill a batch of forms from a single uploaded file (CSV, xlsx, ...).

It uses Django class-based generic views to that effect, allowing for a very simple configuration:

from django import forms
from batchform import views

class LineForm(forms.Form):
    col1 = forms.CharField(max_length=10)
    col2 = forms.CharField(max_length=10)
    col3 = forms.CharField(max_length=10)

class BatchFormView(views.BaseUploadView):
    lines_form_class = LineForm
    columns = ('col1', 'col2', 'col3')

Demo

In order to have a look at the application, simply clone the repository, ensure you have Django in your repository, and run:

./manage.py runserver

Links

Something went wrong with that request. Please try again.