Opened 5 years ago

Closed 5 years ago

#22287 closed Cleanup/optimization (invalid)

Add method to RegistrationProfile to verify if the user has activated

Reported by: david.anderson.lino@… Owned by: anonymous
Component: Uncategorized Version: 1.4
Severity: Normal Keywords: refactor
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


Currently the only way of doing this is by doing something like: profile.activation_key == u"ALREADY_ACTIVATED"

This hard coded constant and checking is not really nice.

A method "has_been_activated" could enclose this verification.

Change History (2)

comment:1 Changed 5 years ago by anonymous

Owner: changed from nobody to anonymous
Status: newassigned

comment:2 Changed 5 years ago by Carl Meyer

Resolution: invalid
Status: assignedclosed

Hi - thanks for the report! But there is no RegistrationProfile class in Django. It seems that your report is related not to code in Django core, but in the third-party django-registration app:

Note: See TracTickets for help on using tickets.
Back to Top