aboutsummaryrefslogtreecommitdiffstats
path: root/account/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a type 'identify' and updated 'list_approved' display contentsWeitian LI2014-06-031-14/+14
| | | | | | | | | * changed 'identify' to 'identity' in Model 'UserProfile' * updated forms.py, admin.py, profile.html related to 'identity' * added South migration for renaming field 'identify' to 'identity' * updated display contents of 'list_approved': removed 'identity' column * updated 'institute' field name to 'institute (and major)' * updated related translations
* small updates to account/models.pyWeitian LI2014-05-201-5/+11
|
* * added 'is_checkin' field to account.models.UserProfileWeitian LI2014-05-201-0/+62
| | | | | | | | * added 'get_checkin_value', 'dump_fieldnames' and 'dump' methods to UserProfile model * generated south migrations for app 'account' * display two more columns (email, is_checkin) in UserProfileAdmin * added 'get_urls' and 'userprofile_csv_view' to UserProfileAdmin * updaed 'profile.html' with 'is_checkin' field
* * updated transcript help_text of account/models.pyWeitian LI2014-04-291-1/+1
| | | | | | * updated ValidationError message and used named string of account/extra.py * small changes to 'profile.html' and 'profile_update.html' * added class Meta to notice/models.py/NoticeAttachment
* * fixed FieldFile import problem of account/extra.pyWeitian LI2014-04-291-1/+1
| | | | | * updated models.py and added 'help_text' to transcript field * using 'get_object_or_404' in views.py instead of simply get method
* * included archive urlsWeitian LI2014-04-281-16/+1
| | | | * moved 'file_cleanup' function to extra.py
* * implemented function to auto login user after activationWeitian LI2014-04-271-3/+15
| | | | | o added 'login_on_activation' and connected to 'user_activated' signal o updated 'activation_complete.html' template
* * updated 'profile.html' to show new fieldsWeitian LI2014-04-271-4/+30
| | | | | | * added account_profile.css * fixes to 'save' method of model UserProfile and UserFile * fixes to 'UpdateProfileView' with formset 'instance'
* * added 'OverwriteStorage()' to overwrite previous uploaded filesWeitian LI2014-04-271-1/+49
| | | | * overwrite 'save' method to delete previous uploaded files
* * added model 'UserFile' and register to adminWeitian LI2014-04-271-5/+60
| | | | | | | | | * updated 'UserProfile' model: o added fields 'reason', 'transcript', 'supplement' o used 'ContentTypeRestrictedFileField' with dynamical 'upload_to' * updated 'UpdateProfileView' to support formset * updated 'UpdateProfileForm' with new fields and clean method * added 'UserFileForm' and 'UserFileFormSet'
* fixes to account admin.site.registerWeitian LI2014-04-211-7/+0
|
* * added following methods for 'UserProfile' model:Weitian LI2014-04-211-1/+30
| | | | | | | | | o get_gender_value() o get_approved_value() o get_sponsored_value() o get_identify_value() * updated 'user_registered_callback' to save 'identify' field * updated 'account/profile.html' template to show identify infomation
* * added 'ResendEmailForm' formsWeitian LI2014-04-211-0/+17
| | | | | | | | * implemented 'ResendEmailView' class-based view and templates * added js code 'account_email_resend.js' Warning: cannot load static file located in app directory
* * implemented 'list_approved' view, added related templateWeitian LI2014-04-211-0/+12
| | | | * updated related link in 'navbar.html'
* * added 'profile', 'profile_update' and 'profile_update_done' templatesWeitian LI2014-04-201-0/+1
| | | | | | | and implemented related views * added 'account.forms.UpdateProfileForm' * implemented 'account.views.UpdateProfileView' using class-based view * updated 'account.urls'
* fixed UserProfile model to use CharField choices in "is_approved" and ↵Weitian LI2014-04-201-2/+17
| | | | "is_sponsored"
* * implemented custom form and profile for registrationWeitian LI2014-04-201-2/+55
|
* * updated settings.py, added settings_email.pyWeitian LI2014-04-181-0/+12
* created directories 'static' and 'templates' * added app 'account', 'notice' * added app 'demo'