Skip to main content

django-model-admin-autocomplete

This simple django app enables users to do a few tweaks to Django’s built-in autocomplete feature.

Installation

pip install django-model-admin-autocomplete

and then add this to your settings.py module

SILENCED_SYSTEM_CHECKS = ['admin.E039', 'admin.E040']

Usage

Consider you have a few models as,

# models.py
class Article(models.Model):
    headline = models.CharField(max_length=100)
    pub_date = models.DateField()
    publications = models.ManyToManyField(Publication)
    reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE)

    def __str__(self):
        return self.headline

and you need autocomplete fields for publications and reporter in models admin.

# admin.py
from django.contrib import admin
from .models import Article
from model_admin_autocomplete import ModelAdminAutoComplete


class ArticleModelAdmin(ModelAdminAutoComplete, admin.ModelAdmin):
    autocomplete_fields = ('publications', 'reporter')


admin.site.register(Article, ArticleModelAdmin)

Demo

If you want to see a very simple Django demo project using this module, please take a look at model-admin-autocomplete-demo.

Metadata

Release files for django-model-admin-autocomplete 0.2.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-model-admin-autocomplete 0.2.0
File Size Uploaded Provenance
django-model-admin-autocomplete-0.2.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-model-admin-autocomplete 0.2.0
File Interpreter ABI Platform
django_model_admin_autocomplete-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / django-model-admin-autocomplete-0.2.0.tar.gz

Download URL django-model-admin-autocomplete-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ef7ed9b0d6cd2bc231c0c059f544846bef95504c72db23419de71d91b7b9e9c2
BLAKE2b-256 checksum
How to use checksums
628df7aa8551632d97dcc710910b651bdb27ddcc0c0af440d7723796dbef6c4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Release files / django_model_admin_autocomplete-0.2.0-py3-none-any.whl

Download URL django_model_admin_autocomplete-0.2.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
596d34da731a543ddbc38aacdd7af06dfab936feb79e9e24787dc04645fb24d4
BLAKE2b-256 checksum
How to use checksums
8865c071fe0747808f269a240b3d36755720425b23d8ed44f0f4e74c9dea7519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Security for django-model-admin-autocomplete 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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