1. 27 Feb, 2013 1 commit
  2. 26 Feb, 2013 1 commit
    • Kostas Papadimitriou's avatar
      Prevent changes of readonly user profile fields · 80ff81fd
      Kostas Papadimitriou authored
      some user profile properties require special actions to be performed by
      the user in order to be altered. Additional workflows are provided for
      these properties to be changed (e.g. email verification urls/views for
      user to change his email address) and thus should be considered
      immutable by the user profile form.
      
      Setting the readonly attribute on those field widgets is not enough
      since it only takes care of their immutability on the client/presentation
      layer and does not ensure that the corresponding profile attribute won't
      be overridden if found in the POST dictionary passed during the form
      instantiation.
      
      To fix this we override the respective clean_<field> methods and force
      them to return the currently stored value regardless if the user
      requested to change it (e.g. with a handcrafted POST request).
      
                                                                          ()
      80ff81fd
  3. 25 Feb, 2013 2 commits
  4. 23 Feb, 2013 1 commit
  5. 22 Feb, 2013 1 commit
  6. 21 Feb, 2013 2 commits
  7. 19 Feb, 2013 3 commits
  8. 18 Feb, 2013 2 commits
  9. 14 Feb, 2013 27 commits