OpenUpSA/wazimap-ng

Icon on profile categories not displaying

Opened this issue · 1 comments

  1. Change the icon for a profile category in the Django Admin, e.g. (https://staging.wazimap-ng.openup.org.za/admin/points/profilecategory/41/change/?_changelist_filters=theme_id%3D2)
  2. Navigate to the correct profile instance, e.g. https://wazimap-ng.africa/
  3. Find the profile category in the points mapper
  4. Notice that the chosen icon is not visible.

0.12
The icon should be added here:

"id": lc["category__profilecategory__id"],

the API response should look like this:

[
  {
    "name": "Health",
    "id": 43,
    "icon": "local_hospital",
    "subthemes": [
      {
        "label": "Pharmacies",
        "id": 300,
        "count": 1500,
+       "icon": "local_hospital"
        "metadata": {
          "source": "",
          "description": "",
          "licence": 1
        }
      },
    ]
  },