from random import choice
from string import ascii_uppercase
other_four_symbols = ''.join([choice(list(ascii_uppercase)+map(str, range(0,10))) for _ in range(4)])
class TextForm(forms.Form):
body = forms.CharField(max_length=100)
def __init__(self, *args, **kwargs):
super(TextForm, self).__init__(*args, **kwargs)
self.fields['body'].widget.attrs.update({'class': 'form-control'})