Skip to main content

django-modelqueryform

https://badge.fury.io/py/django-modelqueryform.png https://travis-ci.org/ckirby/django-modelqueryform.png?branch=master https://coveralls.io/repos/ckirby/django-modelqueryform/badge.png?branch=master

django-modelqueryform is a flexible app that helps you build Q object generating forms.

It is a great tool if you want you users to be able to do filtered searches against your models.

Project

The project can be found at https://github.com/ckirby/django-modelqueryform

Documentation

The full documentation is at https://django-modelqueryform.readthedocs.org.

Requirements

  • Django 1.11+

  • Python 3.4+

Features

  • Useable default FormFields for ModelFields that:

    • Have .choices defined or are inherently made of choices (ie. BooleanField and NullBooleanField)

    • Are represented as numeric types (eg. IntegerField, FloatField, etc.)

    • Text backed fields need code written to handle them. That is easy though, because:

  • Creation of FormFields, Q objects, and User readable query terms are completely customizable. You can target ModelFields:

    • By name (If the field has specific requirements)

    • By field type (Use the same widget or Q object builder for all CharFields)

  • Can follow Model relationships or treat relationship fields as .choices

  • Provides a new Field and Widget (RangeField, RangeWidget). These allow users to generate a __gte, __lte pair for the orm, optionally also including an __isnull

    • RangeField

      • Dynamically generates min and max boundaries. (Aggregate Min and Max on the model field)

      • If null=True on the ModelField allows user to indicate if they want to include null values in the query

    • RangeWidget

      • Returns a MultiWidget with 2 NumberInput widgets (with min and max attributes)

Release files for django-modelqueryform 3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-modelqueryform 3.0
File Size Uploaded
django-modelqueryform-3.0.tar.gz 11.0 kB Details

Release files / django-modelqueryform-3.0.tar.gz

Download URL django-modelqueryform-3.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8fc4aa818a004b395fd12696d077d2ca2c238199949c3945c643a1367942ab6f
BLAKE2b-256 checksum
How to use checksums
39bbbdd2dbb6d3232e2e12ad2771787bd3c4e70433a21b3f9e170b5f144c4e38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

3.0 This release

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

2 release files

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page