Skip to content

Instantly share code, notes, and snippets.

@molokov
molokov / admin.py
Last active Nov 3, 2016
Mezzanine/Cartridge Shipping Rules
View admin.py
# ...
from cartridge.shop.models import ShippingRule
# For ProductVariationAdmin, add weight, pickup_available and shipping_available
# to the variation_fieldsets so you can edit them for each product variation
# ...
##################
# SHIPPING RULES #
View keybase.md

Keybase proof

I hereby claim:

  • I am molokov on github.
  • I am molokov (https://keybase.io/molokov) on keybase.
  • I have a public key whose fingerprint is F481 96DE 2F9F 805B CDCF B13B 0995 839B F66F AE64

To claim this, I am signing this object:

@molokov
molokov / gandssanta.py
Created Sep 16, 2015
Geek & Sundry Secret Santa
View gandssanta.py
#!/usr/bin/env python
import copy
import random
import pprint
nice_list = [
# People's names/usernames go here
]