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

TTVA-218 | Add a possibility to hide selectable field values from the Respa admin #190

Merged
merged 5 commits into from
Jan 14, 2025

Conversation

japauliina
Copy link

Add a new field active to following models:

  • Purpose
  • TermsOfUse
  • ResourceType
  • ReservationMetadataSet
  • Equipment

Admin users can change this value in Django admin. Hide inactive objects from the Respa admin.

Refs TTVA-218

Add a new field `active` to the `Purpose` model. Admin users can change
this field in Django admin. Hide inactive purposes from the resource
form in the Respa admin.

Refs TTVA-218
Add a new field `active` to the `TermsOfUse` model. Admin users can
change this field in Django admin. Hide inactive terms of use from the
resource form in the Respa admin.

Refs TTVA-218
Add a new field `active` to the `ResourceType` model. Admin users can change
this field in Django admin. Hide inactive resource types from the resource
form in the Respa admin.

Refs TTVA-218
Add a new field `active` to the `ReservationMetadataSet` model. Admin
users can change this field in Django admin. Hide inactive reservation
metadata sets from the resource form in the Respa admin.

Refs TTVA-218
Add a new field `active` to the `Equipment` model. Admin users can
change this field in Django admin. Hide inactive equipments from the
resource form in the Respa admin.

Refs TTVA-218
Copy link
Collaborator

@jopesy jopesy left a comment

Choose a reason for hiding this comment

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

LGTM

@japauliina japauliina merged commit 6652746 into tre-varaamo-qa Jan 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants