Changeset a8cd440
- Timestamp:
- Jan 23, 2012, 3:37:25 AM (14 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 96754f0
- Parents:
- 777e9b2
- git-author:
- Alex Dehnert <adehnert@…> (01/23/12 03:37:25)
- git-committer:
- Alex Dehnert <adehnert@…> (01/23/12 03:37:25)
- Location:
- asadb
- Files:
-
- 1 added
- 3 edited
-
groups/fixtures/initial_data.xml (modified) (1 diff)
-
groups/purge_for_transition.py (added)
-
groups/views.py (modified) (3 diffs)
-
template/groups/group_change_main.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/fixtures/initial_data.xml
rc060d8c ra8cd440 43 43 <field type="CharField" name="name">Technology</field> 44 44 </object> 45 <object pk="15" model="groups.activitycategory"> 46 <field type="CharField" name="name">Other</field> 47 </object> 45 48 </django-objects> -
asadb/groups/views.py
r8481152 ra8cd440 21 21 from django.db import connection 22 22 from django.db.models import Q 23 from django.utils.safestring import mark_safe 23 24 24 25 import form_utils.forms … … 110 111 value = getattr(self.instance, field_name) 111 112 StaticWidget.replace_widget(formfield, value) 113 for field in self.force_required: 114 self.fields[field].required = True 115 self.fields['constitution_url'].help_text = mark_safe("Please put your current constitutional URL, if you have one.<br>If your constitution is currently an AFS path, you can either use the corresponding web.mit.edu (e.g., http://web.mit.edu/locker/path/to/const.html) or stuff.mit.edu path, or just use http://asa.mit.edu/const/afs/your-afs-path.<br>If you don't currently know where your constitution is, put http://asa.mit.edu/const/missing/.<br>(In either of the http://asa.mit.edu/const/ cases, we'll get in touch with you later about putting something better in.)") 112 116 113 117 exec_only_fields = [ … … 119 123 'recognition_date', 120 124 ] 125 force_required = [ 126 'activity_category', 'description', 127 'num_undergrads', 'num_grads', 'num_community', 'num_other', 128 'website_url', 'officer_email', 'group_email', 129 'constitution_url', 'athena_locker', 130 ] 131 121 132 122 133 class Meta: -
asadb/template/groups/group_change_main.html
rfbb362a ra8cd440 6 6 7 7 <h1>{{group.name}}: Change main information</h1> 8 9 <p>We're using the transition from the old ASA Database to this new one as an opportunity to verify that old information is still accurate. Thus, we have intentionally limited the amount of information we copied from the old database. While filling this out, feel free to refer to the <a href='https://sisapp2.mit.edu/asa/student_group_detail.do?action=detail&studentGroupId={{group.pk}}'>old database</a>. However, please verify that information is accurate as you copy it over. As always, if you have trouble, please <a href='mailto:asa-exec@mit.edu'>contact us</a>.</p> 8 10 9 11 {% if msg %}
Note: See TracChangeset
for help on using the changeset viewer.