platform-coop-toolkit / coop-map-directory-index

The Map/Directory/Index component of the Platform Cooperative Development Kit.
https://directory.platform.coop
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

feat: replace category groups with types, surface type in admin (resolves #94) #96

Closed greatislander closed 4 years ago

greatislander commented 4 years ago

Description

This PR replaces category groups with a ForeignKey relationship to types as defined in #94.

Steps to test

  1. Check out branch.
  2. Run migration.
  3. View categories and types in admin.

Expected behavior:

  1. Category "Category type" should list available Types.
  2. Types should be editable.

Additional information

Follow-up tasks once merged:

  1. Add missing types.
  2. Update categories to the appropriate category type.
  3. More to follow.

Related issues

greatislander commented 4 years ago

@erictheise This is ready now.

greatislander commented 4 years ago

@erictheise That's a good point. Cleaner to have Category.type. I can make that change.