Skip to main content

Abstract class implemented to provide form django admin like

Project description

django-form-admin

Information

https://badge.fury.io/py/django-form-admin.png https://pypip.in/d/django-form-admin/badge.png

It is a Django application that lets to render forms like django admin, with the same HTML

Requirements

How to use it

Option 1

In your form:

class FooForm(forms.Form, FormAdminDjango):
    pass

class FooModelForm(forms.ModelForm, FormAdminDjango):
    pass

In your template:

{{ form.as_django_admin }}

Option 2

But you don’t need inherit of FormAdminDjango, you may also do

In your form:

class FooForm(forms.Form):
    ...

    def as_django_admin(self):
        from formadmin.forms import as_django_admin
        return as_django_admin(self)

In your template:

{{ form.as_django_admin }}

Option 3

Or even without modify the form

Only in your template:

{% load formadmin_filters %}
{{ form|as_django_admin }}

Development

You can get the bleeding edge version of django-form-admin by doing a clone of its git repository:

git clone git://github.com/Yaco-Sistemas/django-form-admin.git

Releases

0.4.0 (2013-09-12)

  • New way to render the form (filter)

  • Update metainfo

  • Example project

0.3.2 (2011-12-03)

  • Subversion version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-form-admin-0.4.0.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file django-form-admin-0.4.0.tar.gz.

File metadata

File hashes

Hashes for django-form-admin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 162dfe8e90d606ed839ce2b4955ead489dbc0675c6b78ae502f22eb0c7f96d4f
MD5 fe46294c5dfca3b9d0530b2d704e619d
BLAKE2b-256 4bc7a22e747ff87ec77c840979f999d9b63057811d214f02c784d57daecf250e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page