Hi David.

Are you familiar with Django forms in general? Mezzanine's default ProfileForm sets up a flag <https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/accounts/forms.py#L91> (self._signup) to indicate if the current form instance is handling a signup or a profile update. You can subclass this form, implement some logic to make the studentID conditionally editable in __init__() based on that flag, and register your new form via settings.ACCOUNTS_PROFILE_FORM_CLASS <http://mezzanine.jupo.org/docs/configuration.html#accounts-profile-form-class>.

Haven't tried it but it looks perfectly viable in theory.

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to