This file contains 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 CityAndStateInputMixin(object): | |
def __init__(self, *args, **kwargs): | |
super(CityAndStateInputMixin, self).__init__(*args, **kwargs) | |
#add custom error_class | |
self.error_class = CustomListError | |
#adding State Selct Widget and dynamic css edits | |
self.fields['state'] = forms.ChoiceField(choices=US_STATES, | |
widget=StateSelectWidget) |
This file contains 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
python manage.py sqlclear myapp auth sites sessions contenttypes | sed 's/";/" CASCADE;/' | python manage.py dbshell |
NewerOlder