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
Close
Hashes for django-genericforeignkey-0.51.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ccde60ccb5d13c32a7bc3f96fea09e10ed33670292f5d3d4bc985610a45ece4 |
|
MD5 | 68f672149cc7b002a522e036b2482ea3 |
|
BLAKE2b-256 | 98cd147a5261e15fe850e49f4f06e571ce902b0a375b7f6cd4c297051bfa1ee5 |