[Answered ]-How to fix an error which occurs when I am trying to delete an object related to another objects in Django app as an admin?

1👍

I think that happens because you set id = None try to delete this function and see what will happen

    def __init__(self, *args, **kwargs):
       super().__init__(*args, **kwargs)
       self.id = None

Leave a comment