Managed to create an item with no primary key value and cant delete

As the subject says I’ve managed to create an item in a model with no primary key value so its just blank and I’m unable to delete it via the admin.
Is there a way to delete this or am i going to need to remove everything to do with that model, delete the model and add everything back in?

Thanks
Rob

There are a couple different possibilities involved. Please post your model here.

At a minimum, you should be able to delete that row either from the Django shell using the ORM or your database’s shell using SQL.

1 Like

Thanks Ken,

forgot about using the Shell!