Browse Source

Turn hardware_provisioning into pluggable app

Jocelyn Delande 8 years ago
parent
commit
4c82039a18
2 changed files with 3 additions and 2 deletions
  1. 0 1
      coin/urls.py
  2. 3 1
      hardware_provisioning/app.py

+ 0 - 1
coin/urls.py

@@ -36,7 +36,6 @@ urlpatterns = patterns(
     url(r'^isp.json$', isp_json),
     url(r'^members/', include('coin.members.urls', namespace='members')),
     url(r'^billing/', include('coin.billing.urls', namespace='billing')),
-    url(r'^subscription/', include('coin.offers.urls', namespace='subscription')),
     url(r'^hardware-provisioning/', include('hardware_provisioning.urls',
         namespace='hardware_provisioning')),
 

+ 3 - 1
hardware_provisioning/app.py

@@ -2,8 +2,10 @@
 
 from __future__ import unicode_literals
 from django.apps import AppConfig
+import coin.apps
 
 
-class HardwareProvisioningConfig(AppConfig):
+class HardwareProvisioningConfig(AppConfig, coin.apps.AppURLs):
     name = 'hardware_provisioning'
     verbose_name = 'prêt de matériel'
+    exported_urlpatterns = [('hardware-provisioning', 'hardware_provisioning.urls')]