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

Combine views with separate "processing" views into one #2

Open
tonyandrys opened this issue Jan 29, 2014 · 0 comments
Open

Combine views with separate "processing" views into one #2

tonyandrys opened this issue Jan 29, 2014 · 0 comments

Comments

@tonyandrys
Copy link
Member

Stuck in my PHP mindset when starting this project, I separated functionality of many views in two pieces: one view to display the data stored in the database, and another to make changes to the data.

Example:
dj3/forms/new_sub_request/$ (submission form for users to create a new request)
passes data via POST to
dj3/forms/process_sub_request/

and process_sub_request validates the input writes the new SubRequest object to the database.

However, after reading more, it seems to make more sense to just concat these two views into one, and switch between modes via GET variables ($process=1). At least, this is what I see most other projects doing.

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

No branches or pull requests

1 participant