-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign petition with an account #258
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
'email': pytitionuser.user.email | ||
} | ||
|
||
sign_form = SignatureForm(petition=petition, initial=initial) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
Could you add one unit test for this new feature?
Just check that if a user is logged in, its personal information are displayed in the HTML form and that
form.is_bound == True
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep !
1bf5319
to
9be2672
Compare
I can see you've rebased on origin/master. |
yes i just don't had the time until this week, i finish that at the end of the week :) |
Absolutely no problem! |
c285207
to
2037088
Compare
Proposition for #99 : auto fill petition's signature form with currently connected user, if any, else leave form empty