When I'm trying to change image field class withfield_classesand use it in GenericTabularInline- nothing happens and Django's default ImageFieldis used.

/admin.py/

classImageAttachmentForm(ModelForm):
classMeta:
        model = ImageAttachment
        fields = ['image']
*field_classes *= {
'image': *CustomImageFormField*,
        }
classImageAttachmentInline(GenericTabularInline):
    form = ImageAttachmentForm
    model = ImageAttachment
@admin.register(Pet)
classPetAdmin(ModelAdmin):
    inlines = [ImageAttachmentInline]


I've submitted a *probable fix* here: https://github.com/Tuoris/django/commit/b7151a0860363487d120e168866c9b95e715b526

Thanks, tuoris

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6ed2de17-cf5b-1c8d-99ad-f1af262a34f2%40gmail.com.

Reply via email to