Skip to main content

Countable Field

Countable Field is a simple Django custom for widget for displaying a text area with the current word count displayed underneath. It can be set up to display the count in red when the current word count is out of required minimum or maximum word count for the form field.

Quick start

  1. Add “countable_field” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'countable_field',
    ]

2. In the form, set the field’s widget to be “CountableWidget”, passing the minimum and maximum word count as additional parameters, such as:

self.fields['essay_response'].widget = \
            CountableWidget(attrs={'data-min-count': this.essay_min_length,
                                   'data-max-count': this.essay_max_length})

Metadata

Release files for coa-django-countable-field 1.6

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

Source distribution (sdist)

Source distribution for coa-django-countable-field 1.6
File Size Uploaded Provenance Actions
coa-django-countable-field-1.6.tar.gz 9.2 kB Without provenance Details for coa-django-countable-field-1.6.tar.gz

Release files / coa-django-countable-field-1.6.tar.gz

Download URL coa-django-countable-field-1.6.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
455bbc11ae8c1ecd7fdb169f00352f80ef33d3a67780420cfc5962ed9aec0a6e
BLAKE2b-256 checksum
How to use checksums
80aae1b6c1d07ba4731546d32f5a212e028465f707db4542690dd3ff4f62c7ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Security for coa-django-countable-field 1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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