2

I am using the Django admin with the Grappelli app to manage an M2M relationship (Gallery - Image) with an intermediary model with inline form sections.

I've added a gallery record with multiple images successfully, however when I go back and edit the record, I cannot remove any of the inline images.

The only way I have managed to remove the relationship is by deleting the image record separately.

Simply emptying the fields and saving throws up validation errors (ie This field is required etc). All I want to do is remove one or more inline form sections in its entirety.

Can anyone help?

Any advice appreciated.

Alasdair
  • 298,606
  • 55
  • 578
  • 516
Dan
  • 1,065
  • 2
  • 9
  • 16

1 Answers1

1

There should be a checkbox for each inline to delete it.

If you can't see the delete checkboxes, then perhaps your user does not have the permission to delete the intermediary model.

Alasdair
  • 298,606
  • 55
  • 578
  • 516
  • 1
    I'm using the Grappelli app and each inline had an X in the right hand corner. I was expecting it to disappear when I clicked the X but this is actually still just a checkbox. – Dan May 19 '11 at 08:46