When accessing Profile as not logged in User, a Warning or redirect is expected. Instead, one gets a 500.
Created by: hixi
Check if User exists and display a warning, instead of allowing to fail.
Issue:
DoesNotExist: User matching query does not exist.
https://sentry.njo.ch/geometalab/osmaxxprod/issues/210/
DoesNotExist: User matching query does not exist.
(3 additional frame(s) were not displayed)
...
File "osmaxx/profile/views.py", line 16, in get_object
return self.model.objects.get(pk=self.request.user.id)