Nobody have ideas?

On Aug 25, 6:28 pm, fax8 <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> anyone can tell me why the following does not works as expected?
>
> I mean why, when displaying the form with:
>
>   form = RenderForm()
>   return render_to_response('add_render.html', {'form': form},
> context_instance=RequestContext(request))
>
> the subject field is not displayed?
>
> And why the 'clean_simple_bitrate' method, given that simple_bitrate
> is a field of the Render model, is not executed?
>
> Thanks for your help,
>
> Fabio Varesano
>
> forms.py:
>
> from django import forms
> from django.forms import ModelForm
> from django.forms import ValidationError
> from models import Render
>
> #RenderForm = form_for_model(Render)
>
> class BasicRenderForm(ModelForm):
>   class Meta:
>     model = Render
>
> class RenderForm(BasicRenderForm):
>   #raise ValidationError('Enter at least one e-mail address.')
>
>   subject = forms.CharField(max_length=100)
>
>   def clean_simple_bitrate(self):
>     raise ValidationError('Enter at least one e-mail address.')
>     print value + 'ciao'
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to