-
-
Notifications
You must be signed in to change notification settings - Fork 34
Sign petition with an account #258
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
base: master
Are you sure you want to change the base?
Conversation
fallen
left a comment
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
9be2672 to
510c8d5
Compare
510c8d5 to
5195f83
Compare
|
So it's been a long week I'm not sure if I should add a test in |
54b886a to
6a183ed
Compare
|
Hey @lpoujade , long time no see! ;) I think that your change is mostly touching the Petition view ( However I think you should also add your code inside the
|
fallen
left a comment
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.
need to update detail view as well before merging.
Proposition for #99 : auto fill petition's signature form with currently connected user, if any, else leave form empty