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: add Organization.code_url #107

Closed greatislander closed 4 years ago

greatislander commented 4 years ago

Description

This PR adds a new URLField, code_url, to the Organization model. This corresponds to a link to the organization's free / libre / open source code, e.g. a GitHub or GitLab organization.

Steps to test

  1. Check out this branch.
  2. Run python manage.py migrate mdi.
  3. Open an Organization for editing in the admin.

Expected behavior: A URL field labelled "Code url" follows the "Code availability" field.

Additional information

I could see that we might be able to infer this from GitHub if present in the Organization.socialnetworks data, but I think it makes sense to allow this to be added separately.

Related issues

Blocks #6.