#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

Description

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 18 months ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to anonymous
  • Patch needs improvement unset
  • Status changed from new to assigned

comment:2 Changed 18 months ago by carljm

  • Resolution set to invalid
  • Status changed from assigned to closed

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: https://bitbucket.org/ubernostrum/django-registration/

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