Repository: openwisp/openwisp-firmware-upgrader (language: python)

Issue:
[change] Add openwisp-ipam from openwisp-controller 1.0.x
Add openwisp-ipam from openwisp-controller 1.0.x.


Discussion / hints:

Fix patch:
diff --git a/README.rst b/README.rst
index 1c43f9b9..429325f0 100644
--- a/README.rst
+++ b/README.rst
@@ -98,6 +98,7 @@ Follow the `setup instructions of openwisp-controller
         'openwisp_firmware_upgrader',
         'openwisp_users',
         'openwisp_notifications',
+        'openwisp_ipam',
         # openwisp2 admin theme (must be loaded here)
         'openwisp_utils.admin_theme',
         # admin


Test patch:
diff --git a/tests/openwisp2/settings.py b/tests/openwisp2/settings.py
index bc6efec2..dcd80564 100644
--- a/tests/openwisp2/settings.py
+++ b/tests/openwisp2/settings.py
@@ -42,6 +42,7 @@
     'openwisp_firmware_upgrader',
     'openwisp_users',
     'openwisp_notifications',
+    'openwisp_ipam',
     # openwisp2 admin theme
     # (must be loaded here)
     'openwisp_utils.admin_theme',
@@ -197,9 +198,10 @@
 }
 
 if os.environ.get('SAMPLE_APP', False):
+    firmware_upgrader_index = INSTALLED_APPS.index('openwisp_firmware_upgrader')
     INSTALLED_APPS.remove('openwisp_firmware_upgrader')
     EXTENDED_APPS.append('openwisp_firmware_upgrader')
-    INSTALLED_APPS.append('openwisp2.sample_firmware_upgrader')
+    INSTALLED_APPS.insert(firmware_upgrader_index, 'openwisp2.sample_firmware_upgrader')
     FIRMWARE_UPGRADER_CATEGORY_MODEL = 'sample_firmware_upgrader.Category'
     FIRMWARE_UPGRADER_BUILD_MODEL = 'sample_firmware_upgrader.Build'
     FIRMWARE_UPGRADER_FIRMWAREIMAGE_MODEL = 'sample_firmware_upgrader.FirmwareImage'