Skip to content

Instantly share code, notes, and snippets.

@ramusus
ramusus / gist:4343464
Created December 20, 2012 07:08 — forked from anonymous/gist:4343460
adminreverse from here http://djangosnippets.org/snippets/2032/. changed for working with ForeignKeys
'''
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
@pcreux
pcreux / gist:1681580
Created January 26, 2012 07:48
Reword *first* commit
# You can't use rebase -i here since it takes the parent commit as argument.
# You can do the following though:
git checkout FIRST_COMMIT_SHA && git commit --amend && git rebase HEAD master