Set edit_profile when appropriate
diff --git a/app/soc/modules/gci/views/profile.py b/app/soc/modules/gci/views/profile.py
index 6aa95ed..3d6fb04 100644
--- a/app/soc/modules/gci/views/profile.py
+++ b/app/soc/modules/gci/views/profile.py
@@ -260,10 +260,11 @@
def context(self):
context = super(GCIProfilePage, self).context()
- if self.isCreateProfileRequest() and self.isStudentRequest():
- context.update({
- 'form_instructions': PARENTAL_CONSENT_ADVICE
- })
+ if self.isCreateProfileRequest():
+ if self.isStudentRequest():
+ context['form_instructions'] = PARENTAL_CONSENT_ADVICE
+ else:
+ context['edit_profile'] = True
return context