Jay Parlar wrote:
> On 6/17/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
>> On 6/17/06, gabor <[EMAIL PROTECTED]> wrote:
>>> could you post your model and the relevant part of the view code?
>>>
> 
> The relevant model:
> 
> class Product(models.Model):
>     product_name = models.CharField(maxlength=64,
> blank=False,validator_list=[good_name], unique=True, primary_key=True)
> 
> 
> And my view:
> 
> 
> 
> 
> 
>     if request.POST:
>         manipulator = Product.AddManipulator()
>         new_data = request.POST.copy()
> 
>         errors = manipulator.get_validation_errors(new_data)
> 
>         if not errors:
> 
>             manipulator.do_html2python(new_data)
> 
> 
> 
> When I have the primary_key=True, then the manipulator doesn't catch
> any errors. It also doesn't call my 'good_name' validator. When I
> remove the primary_key=True, then the manipulator catches the error,
> and returns "This field is required." as the field error.
> 

hi,

sorry for the late response... hmm..it really is like you said. for a 
primary_key the validation is simply not happening. opening a ticket 
about this issue would be a good idea...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to