[Fixed]-Custom validation Django admin unknown field

1👍

The form for EventAdmin must use the Event model. You get the error because BannerImageForm form uses the EventBanner model.

Create an EventBannerAdmin, and get your code working with that. Then, you could change it to an inline, and include the inline in the EventAdmin.

Leave a comment