Comments (2)
Hi!
I would like to help out with this issue, would it be possible to list the particular forms I need to update? From what I can see it's all in the users/templates
directory, right?
I assume we wouldn't want to do anything with passwords or sensitive information.
Thanks,
from affordable_water.
Hi Cédric, glad to hear you'd like to help out!
I believe most of it can be done right in pathways/views.py
. Since we're using Django class-based views and specifically FormView, we can override the get_initial
function and pass in sessions values if they exist.
Here's what I came up with for overriding it in HouseholdView
class HouseholdView(FormView):
template_name = 'pathways/apply/household-size.html'
form_class = forms.HouseholdForm
success_url = '/apply/household-benefits/'
def get_initial(self):
initial = super(HouseholdView, self).get_initial()
if 'household' in self.request.session:
initial['household'] = self.request.session['household']
return initial
Let me know if you come across any parts of the repo that are unclear and could do with some additional documentation.
Thanks!
from affordable_water.
Related Issues (20)
- Enable HTTPS with a free SSL/TLS Certificate HOT 1
- Windows Users: error Microsoft Visual C++ 14.0 is required
- Dropdown menus show two arrows
- Fix dependencies to specific versions HOT 2
- Write content for Buffalo Water contact page HOT 1
- Write content for privacy policy and non-discrimination statement HOT 1
- Fix routing for login HOT 1
- Add translations for other languages
- Enable post-application document submission HOT 1
- Set up long-term S3 and Heroku billing HOT 1
- Efficient S3 document uploading HOT 1
- Enable anti-malware scans on S3 buckets
- Add Amnesty/Forgiveness Program HOT 1
- Add automated async emails HOT 1
- Refactor application saving code in SignatureView
- Limit application progress based on which previous steps were completed HOT 1
- Automatically generate PDFs from submitted application data HOT 1
- Configure WKHTMLTOPDF on Heroku HOT 1
- Add checkpoint pages that visually show progress HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from affordable_water.