Created
July 12, 2012 08:57
-
-
Save danfairs/3096838 to your computer and use it in GitHub Desktop.
profile
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 UserProfileForm(forms.ModelForm): | |
class Meta: | |
model = UserProfile | |
def __init__(self, *args, **kwargs): | |
super(UserProfileForm, self).__init__(*args, **kwargs) | |
self.fields['country'].queryset = Country.on_site.all() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment