Hi, I am very new in django (and python) so my question may be quite dummy, so be patient please. I am playing with example based on django's tutorial.
I have following class: class Pilot(models.Model): ... cn = models.CharField('Soutěžní znak', max_length = 3, primary_key = True) .... and for form processing another class based on this class: class formularPilot(ModelForm): class Meta: model = Pilot View code is simple - just like http://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view Template code is simple too - just calling "context.as_table" method. Form processing (validation) works fine except following: when there is no value in field "cn", then KeyError exception is raised (complete tracback - http://dpaste.com/101323/). My expected behaviour is, that message "required field is empty" should be shown. Am I totally wrong? Thanks, --kb --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---