In a new project I am working with Django's proxy models, and it is just a
great great way to build pragmatic interfaces for views and templates.
In a few cases, however, I need to do things like check equality with the
original object, and my proxy is not actually equal to the original of
I can do this by checking equality on class properties, where that property
is the same in the proxy and the original object.
I wonder if there is a better practice in python. I found some suggestions
to add a method on the original object that simply returns self, but my
proxies, in this case, are on Django's User object.