Skip to content

1587 fix issue with simple fields on update form#1589

Open
jchate6 wants to merge 4 commits into
version-3-0-alphafrom
1587-fix-issue-with-simple-fields-on-update-form
Open

1587 fix issue with simple fields on update form#1589
jchate6 wants to merge 4 commits into
version-3-0-alphafrom
1587-fix-issue-with-simple-fields-on-update-form

Conversation

@jchate6

@jchate6 jchate6 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

There was some missing context from the update form for a dataservice query

@jchate6 jchate6 linked an issue Jun 24, 2026 that may be closed by this pull request
@jchate6 jchate6 changed the base branch from dev to version-3-0-alpha June 24, 2026 23:10
@jchate6 jchate6 requested review from Fingel and phycodurus and removed request for phycodurus June 24, 2026 23:10
Comment thread tom_dataservices/views.py
advanced_form = form.get_advanced_form_partial()

context['simple_fields'] = []
if not simple_form and form.simple_fields():

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why would the form not have as simple partial, but also have simple fields?

I trust that this works, but it just reads a little strange.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I describe this in the docs but I should definitely add a comment here.
Basically, there is a basic partial that takes the fields in simple_fields and makes a super basic form. OR you can can make a simple partial that does whatever you want. So if no partial is given, but there are simple fields we will just use those in the built in default partial.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

One would not necessarily expect there to be BOTH a simple_fields and a user made simple_partial, since the user made simple partial could be much more specific to the dataservice's form fields.

@jchate6 jchate6 moved this to Needs Review in TOM Toolkit Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Fix issue with simple fields on update form

2 participants