Ticket #2 (closed: fixed)

Opened 1 year ago

Last modified 2 months ago

edit user profile

Reported by: akhavr Assigned to: abbasobscurus
Severity: wannabe Keywords: IqzCImknugAqH
Cc: FgAiFTgrIr

Description (Last modified by akhavr)

"Edit user" function is launched from "view user profile" page.

  1. If user views his own profile, he sees "Edit" button.
  2. If user clicks "Edit", he is returned the "edit form" page if and only if he tries to edit his profile.
  3. User updates profile values and hits "Save" button.
  4. System validates the data and saves in the db.
  5. If data is invalid, the "edit form" is returned back to user, stating the errors and preserving the values he entered.

Attachments

Change History

11/02/07 16:53:31 changed by abbasobscurus

  • owner changed from somebody to abbasobscurus.
  • status changed from new to assigned.
  • severity set to crash.

11/02/07 16:53:58 changed by akhavr

  • description changed.

11/02/07 16:54:15 changed by akhavr

  • severity changed from crash to wannabe.

11/19/07 15:35:41 changed by vhotsyk

In build 6668 http://code.djangoproject.com/changeset/6668 SortedDictFromList? was removed. As a result, r29 cannot compile.

Traceback for error: ERROR: Test edit profile form


Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/nose-0.10.0-py2.5.egg/nose/case.py", line 202, in runTest

self.test(*self.arg)

File "/var/www/dounet/developers/test_views.py", line 63, in test_view

profile_page = unicode(edit_profile(self.request))

File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 62, in call

return self.view_func(request, *args, **kwargs)

File "/var/www/dounet/developers/views.py", line 27, in edit_profile

ProfileForm? = form_for_profile(request.user)

File "/var/www/dounet/developers/forms.py", line 36, in form_for_profile

ProfileForm?.base_fields = forms.SortedDictFromList?(new_fields)

AttributeError?: 'module' object has no attribute 'SortedDictFromList?

To fix, need to change line 36 of the file developers/forms.py to ProfileForm?.base_fields = forms.forms.SortedDict?(new_fields)

11/21/07 11:11:01 changed by vhotsyk

  • status changed from assigned to closed.
  • resolution set to fixed.

11/03/08 13:55:28 changed by xercernbmr

  • cc set to FgAiFTgrIr.
  • keywords set to IqzCImknugAqH.

Add/Change #2 (edit user profile)




Change Properties
Action