Sector label not showing changes we made after new update

Hello team after new kobo update

i used to add filed in sector but after new update even after rename and restart it is not showing

please share where we can add extra sector label

/srv/src/kpi/kobo/static_lists.py

@Kal_Lam

please assist when you have time ,i used to do changes of sector but now it is not reflecting

@Mdkhamru, linking your with @ks_1 @stephenoduor

@ks_1

please guide

Hi @Mdkhamru
Yes static_lists.py is the correct file for it. Did you build the containers after making the changes?

1 Like

Hello @ks_1

earlier after changing values just restarted docker it used to reflect

please guide how make reflect for existing docker

Run python3 run.py -cf up -d --build kpi

1 Like

after changing sector and run below command

python3 run.py -cf up -d --build kpi

even did restart


image

image

image

it does not work have try your end after latest update in old kobo update it is working but not on new

please check your end once and let me know solution

thanks for your time and support

@ks_1

please i did build kpi no changes for existing env

It’s difficult to diagnose without looking at your code and environment…

1 Like

Hello @ks_1

is the sector rename worked for you if yes

what was the steps taken for existing setup

like last time you guide us and it worked but my problem now the code been updated and @jnm team did some changes so my below steps are not working

rename
/srv/src/kpi/kobo/static_lists.py

image

  1. restart kpi docker not working

I think the DEFAULTS are only used on a fresh install, and after that, you need to log into https://your-kpi-instance/admin/ as a superuser and click “Config” underneath the “CONSTANCE” heading. Then, you will see a field called SECTOR_CHOICES where you can configure these.

In fact, you should now not need to modify static_lists.py ever again to change sectors; just use the Django admin interface as described above.

1 Like

thanks alot

2 Likes