• Jack Ketcham's avatar
    Set current user as update object, require login · 7e190174
    Jack Ketcham authored
    * Instead of setting the `model` property on the UpdateView class, adds
    a get_object method which returns the current user. This prevents any
    user from editing another user's data.
    * Adds the LoginRequiredMixin to the ProfileConfigureView to limit
    access to authenticated users.
views.py 3.9 KB