In the following case, the admin interface will highlight the fields
as an error but not display the message. Is this a bug?

def test_validate(field_data, all_data):
            raise ValidationError, "that is not good"

class TestModel(models.Model):
    testFk= models.ForeignKey(OtherModel, edit_inline=models.TABULAR,
num_in_admin=1)
    test_date = models.DateField(core=True,
validator_list=[test_validate])

if you change it to edit_inline=models.STACKED it works.

Also, it would be nice if I could have a row-level error message or
even for that whole inline section. I've read about the issues of
model level validation (that's what I really want) and I already
realize that I'm bumping up against the limits of the admin interface.
I am considering making it custom rather than admin.


--~--~---------~--~----~------------~-------~--~----~
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