Skip to content

Instantly share code, notes, and snippets.

View sunshineg's full-sized avatar
☀️
Focusing on SiFou New Project

Sunny sunshineg

☀️
Focusing on SiFou New Project
View GitHub Profile
0x903bfE2D27e107f508f0403c24D9Cd2362315374
### Keybase proof
I hereby claim:
* I am sunshineg on github.
* I am sunnygao (https://keybase.io/sunnygao) on keybase.
* I have a public key ASB9wBAlMgww8cosDFY6WF-QIWOpNXMbz-VdpEXdnh1Ekgo
To claim this, I am signing this object:
###### 哈哈哈哈哈哈哈哈哈哈哈
'''
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.
@sunshineg
sunshineg / reverseadmin.py
Created August 24, 2015 03:35 — forked from wolever/reverseadmin.py
Forked from https://gist.github.com/mzbyszewska/8b6afc312b024832aa85 , updated to work with Django 1.8
'''
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
inside another one. For example, a Person may have multiple foreign
@sunshineg
sunshineg / code.md
Last active December 28, 2015 02:39 — forked from weakish/code.md
The Six Most Common Species Of Code =================================== http://www.willa.me/2013/11/the-six-most-common-species-of-code.html code Written By A CS 101 Student --------------------------------