def identification_field_factory(label, error_required):
 return forms.CharField(label=label, widget=forms.TextInput(attrs=attrs_dict), max_length=75, error_messages={u'required': error_required})

def identification_field_factory ( label , error_required ) : return forms . CharField ( label = label , widget = forms . TextInput ( attrs = attrs_dict ) , max_length = 75 , error_messages = { u'required' : error_required } )
a simple identification field factory which enable you to set the label .