password reset functionality,#6
Conversation
fixed the progress bar bug to progress only when playing
There was a problem hiding this comment.
I think if you didn't specify anything the field labels would be the same as you are specifying here.
There was a problem hiding this comment.
I prefer to specify a help_text field in the models that is a bit more verbose, ex: "The new password you want to use on your account", "Please verify your new password."
There was a problem hiding this comment.
Get rid of the trailing commas in ForeignKey and DateTimeField. :)
|
Still need to move to using templates for the emails.. |
There was a problem hiding this comment.
Looks this this is because the inherited version is expecting an object when doing smart_url. There's no object in this view, so this method sidesteps that.
There was a problem hiding this comment.
I don't think so.. it should only require an object if you are using a URL in the form 'id@users.user_update'
You should be able to set the success URL to @users.user_login as it is in the view above.. if not then we should fix that in Smartmin.
There was a problem hiding this comment.
Ya, I think it's a change required in smartmin.
On Thu, Nov 8, 2012 at 1:33 PM, Nic Pottier notifications@github.comwrote:
In jukebox/users/views.py:
@@ -28,3 +52,47 @@ def post_save(self, obj):
obj.groups.add(group)return obj
class Forget(SmartFormView):form_class = UserForgetFormpermission = Nonesuccess_message = "An Email has beeen sent to your account."success_url = "users.user_login"fields = ('email', )
def get_success_url(self):return reverse(self.success_url)
I don't think so.. it should only require an object if you are using a URL
in the form 'id@users.user_update'You should be able to set the success URL to @users.user_login as it is in
the view above.. if not then we should fix that in Smartmin.—
Reply to this email directly or view it on GitHubhttps://github.com//pull/6/files#r2068071.
|
Just those last few tweaks and you are good to go! |
|
@ericnewcomer @nicpottier @reugene finished the proposed changes... is it now ready? |
No description provided.