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
execute pathogen#infect() | |
set nocompatible | |
syntax on | |
filetype plugin indent on | |
set nowrap | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set laststatus=2 |
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 MyModelForm(forms.ModelForm): | |
def __init__(self, *args, **kwargs): | |
super(forms.ModelForm, self).__init__(*args, **kwargs) | |
for field_name in self.base_fields: | |
field = self.base_fields[field_name] | |
size = None | |
try: | |
size = field.max_length | |
except: | |
size = None |
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
Show hidden characters
{ | |
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", | |
"find_selected_text": true, | |
"fold_buttons": true, | |
"font_face": "Source Code Pro ExtraLight", | |
"font_size": 11, | |
"font_options": | |
[ | |
"subpixel_antialias" | |
], |
NewerOlder