Opened 12 years ago
Closed 12 years ago
#22287 closed Cleanup/optimization (invalid)
Add method to RegistrationProfile to verify if the user has activated
| Reported by: | 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 by , 12 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 12 years ago
| Resolution: | → invalid |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Hi - thanks for the report! But there is no
RegistrationProfileclass 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/