On Mon, 2009-01-05 at 06:31 -0800, drakkan wrote: > however if i delete an user with records associated in the view I have > this error: > > NotSupportedError: cannot delete from a view > HINT: You need an unconditional ON DELETE DO INSTEAD rule. > > django try to delete record from the view and this obviously fails, > > there is a know workaround for this? any way to declare read only the > model?
There's no way to say a model is read only. But the solution is easy: don't try to delete anything on it. You are in complete control of your code. It's entirely up to you whether you try to delete or save things on a model, so if it hurts when you do that, just don't do it. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

