Skip to content

Instantly share code, notes, and snippets.

View mzbyszewska's full-sized avatar

Magda Zbyszewska mzbyszewska

  • Warsaw
View GitHub Profile
@mzbyszewska
mzbyszewska / reverseadmin.py
Last active June 21, 2018 16:32 — forked from ramusus/gist:4343464
Forked from ramusus: https://gist.github.com/ramusus/4343464 and changed to work in Django 1.6, changes tested for OneToOne relation only (original version for Django 1.1 at https://djangosnippets.org/snippets/2032/.)
'''
adminreverse from here http://djangosnippets.org/snippets/2032/
changed for working with ForeignKeys
'''
'''
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