Created
February 12, 2015 15:05
-
-
Save alsoicode/1dc25196f61bf90ba06e to your computer and use it in GitHub Desktop.
passing param to Django form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo(object): | |
def __init__(self, *args, **kwargs): | |
self.pick_id = kwargs.pop('pick_id') | |
super(Foo, self).__init__(*args, **kwargs) | |
foo = Foo(pick_id=2) | |
print foo.pick_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment