As a user I want to be able to see what topic areas are associated with an asset group
Action Items
[ ] Remove ManyToMany field for topicareas in the Asset Group model, if present
[ ] Add model AssetGroupsPracticeAreasMM to many_to_many_models with two foreign keys. See PracticeArea as an example.
[ ] Add code something like this to model_inline.py, replacing Practice Area with Topic Area:
ic```
class AssetGroupsPracticeAreasInline(admin.TabularInline):
model = AssetGroupsPracticeAreasMM
extra = 5
### Manual Verification
- From UI, you should be able to add multiple topic areas to an asset group and only the added topic areas will show on the screen
- From DBVisualizer or other Postgres ide you should be able to see creation and update info in AssetGroupsPracticeAreasMM table.
Overview
As a user I want to be able to see what topic areas are associated with an asset group
Action Items
class AssetGroupsPracticeAreasAdmin(admin.ModelAdmin): inlines = [AssetGroupPracticeAreasInline] list_display = ("PracticeAreas.name") search_fields = ["PracticeAreas.name"]
admin.register(AsseGroups, AssetGroupsTopicAreasAdmin)