Skip to content

Instantly share code, notes, and snippets.

@luto
luto / reverseadmin.py
Last active August 29, 2015 14:03 — forked from andybak/reverseadmin.py
"""
adminreverse from here http://djangosnippets.org/snippets/2032/
changed for working with ForeignKeys
Fixed for Django 1.6 by @andybak
reverseadmin
============
Module that makes django admin handle OneToOneFields in a better way.
A common use case for one-to-one relationships is to "embed" a model