Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lpoujade
Copy link
Contributor

Proposition for #99 : auto fill petition's signature form with currently connected user, if any, else leave form empty

@lpoujade lpoujade changed the title 99 sign with account Sign petition with an account Sep 28, 2020
Copy link
Member

@fallen fallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

doc/configuration.rst Outdated Show resolved Hide resolved
'email': pytitionuser.user.email
}

sign_form = SignatureForm(petition=petition, initial=initial)
Copy link
Member

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep !

@lpoujade lpoujade force-pushed the 99_sign_with_account branch from 1bf5319 to 9be2672 Compare October 15, 2020 19:59
@fallen
Copy link
Member

fallen commented Oct 26, 2020

I can see you've rebased on origin/master.
Are you having troubles writing the unit test? I can write it if you want.
If you just lack time for this PR no worries then we can just wait :)

@lpoujade
Copy link
Contributor Author

yes i just don't had the time until this week, i finish that at the end of the week :)
sorry for the delay !

@fallen
Copy link
Member

fallen commented Oct 27, 2020

Absolutely no problem!
I just wanted to ping to see if there was an issue I could help with :)
No hurry and no worry!
Thanks for your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants