I created a class that inherits from DetailView, and I overriden the get_context_dataand methods post. What seems strange, as mentioned in the title, is that I can call self.objectfrom get_context_data, but I cannot write, so I had to use self.get_object(). But I would like to understand why? self.objectdeleted get_context_data? so that any method called after it cannot use it or something like that?
Thank you in advance
source
share