Skip to content

Commit

Permalink
WIP removing form to get app working - gonna have to alter this
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarow committed Oct 15, 2024
1 parent 472752f commit e55447b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions usaon_benefit_tool/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Link,
Node,
NodeSubtypeOther,
NodeSubtypeSocietalBenefitArea,
# NodeSubtypeSocietalBenefitArea,
User,
)

Expand Down Expand Up @@ -113,14 +113,10 @@ def get_node_label(node: Node) -> str:
NodeSubtypeOther,
exclude=node_exclude,
),
NodeSubtypeSocietalBenefitArea: model_form(
NodeSubtypeSocietalBenefitArea,
exclude=[*node_exclude, "societal_benefit_area_id"],
exclude_fk=False,
field_args={
'societal_benefit_area': {'get_label': 'id'},
},
),
# NodeSubtypeSocietalBenefitArea: model_form(
# NodeSubtypeSocietalBenefitArea,
# # exclude=node_exclude,
# ),
User: model_form(
User,
only=['orcid', 'biography', 'affiliation', 'role'],
Expand Down

0 comments on commit e55447b

Please sign in to comment.