Skip to main content

Django application that allows yo yout generic relations have a nice admin widget

Project description

Information

Generic Foreign Key is a Django application that allows your Generic relations have a nice widget in the admin

It is distrubuted under the terms of the GNU Lesser General Public License <http://www.gnu.org/licenses/lgpl.html>

Dependencies

<script src="/media/js/jquery-1.2.6.min.js"></script>

Installation

Install in your base_site.html of django admin

<script src-"/media/js/jquery-1.2.6.min.js"></script>

In your settings.py

Add a setting EXCLUDE_CONTENT_TYPES, with the content types to exclude. This step is not necesary, but advisable

EXCLUDE_CONTENT_TYPES = (('auth', 'group'), ('auth', 'messege'), ...)

In your ModelAdmin

Extend yout ModelAdmin with GenericAdmin

class MyModelAdmin(GenericAdmin):
    ...

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-genericforeignkey-0.55.tar.gz (12.7 kB view details)

Uploaded Source

File details

Details for the file django-genericforeignkey-0.55.tar.gz.

File metadata

File hashes

Hashes for django-genericforeignkey-0.55.tar.gz
Algorithm Hash digest
SHA256 2cd6b8ca1f9daee241e8b64cab80e3334c8e0c594cec5a22f06fd456e962e0c9
MD5 6821383fdf93b69a28d902c0a2824382
BLAKE2b-256 4a88dc8a9eac0626a1ca6159ccbb534265e04ad0ab319003b663cf403ffe003b

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