===================
Generic Foreign Key
===================

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):
      ...
