Skip to content

Instantly share code, notes, and snippets.

View maiksprenger's full-sized avatar

Maik Sprenger maiksprenger

View GitHub Profile
@maiksprenger
maiksprenger / pre-commit
Last active December 12, 2015 02:18 — forked from jonasvp/pre-commit
Removes copying to separate dir, and is a bit more explicit.
#!/bin/bash
# original jonasvp https://gist.github.com/858223
# also worth noting
# https://github.com/lbolla/dotfiles/blob/master/githooks/pre-commit
# http://python.dzone.com/articles/tips-using-git-pre-commit-hook
# stash unstaged changes, keeps our working dir clean
git stash -q --keep-index
# keeps our messages
class Partner(models.Model):
"""
New partner class.
Note: 'name' and 'users' are dropped from Oscar's partner model.
"""
user = models.OneToOneField('auth.User')
def __unicode__(self):
return u'%s: %s' % (_('Fulfillment Partner'),