Skip to content

Instantly share code, notes, and snippets.

@Christophe31
Christophe31 / gist:859222a9d83e74d3bb0a
Last active August 29, 2015 14:05 — forked from ramusus/gist:4343464
damn, it was app specific, how to find current field name?
"""
# Christophe31
Shamlessly taken from: https://gist.github.com/ramusus/4343464
adapted to dj1.7 and allow Inline class as field argument.
# Ramsus
adminreverse from here http://djangosnippets.org/snippets/2032/
changed for working with ForeignKeys