Hello,

I cant seem to figure out if this is working correctly:

In admin.py I put some code (end of message) to validate an inline
entry. The validation works just fine, however the error message is
not shown in the appropriate place inline. Is this a bug I should file
or is there something wrong with my implementation?



.....

class InlineForm(forms.ModelForm):
    class Meta:
        model = Inline
    def clean(self):
        if ...
            raise forms.ValidationError('Error message here.')
        return self.cleaned_data

class StuffInline(admin.TabularInline):
    model = Inline
    form = InlineForm
    extra = 6

class FormAdmin(admin.ModelAdmin):
   inlines = [StuffInline]
admin.site.register(Form, FormAdmin)

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