from django.conf.urls import url
from pttrack.urls import url_wrap

from . import views

#TODO: remove "followup" from the beginning of all these urls.
unwrapped_urlconf = [  # pylint: disable=invalid-name
    url(r'^(?P<pt_id>[0-9]+)/followup/(?P<ftype>[\w]+)/$',
        views.FollowupCreate.as_view(),
        name='new-followup'),
    url(r'^(?P<pt_id>[0-9]+)/followup/$',
        views.followup_choice,
        name='followup-choice'),
    url(r'^followup/referral/(?P<pk>[0-9]+)/$',
        views.ReferralFollowupUpdate.as_view(),
        {"model": "Referral"},
        name="followup"),  # parameter 'model' to identify from others w/ name
    url(r'^followup/lab/(?P<pk>[0-9]+)/$',
        views.LabFollowupUpdate.as_view(),
        {"model": "Lab"},
        name="followup"),
    url(r'^followup/vaccine/(?P<pk>[0-9]+)/$',
        views.VaccineFollowupUpdate.as_view(),
        {"model": "Vaccine"},
        name="followup"),
    url(r'^followup/general/(?P<pk>[0-9]+)/$',
        views.GeneralFollowupUpdate.as_view(),
        {"model": "General"},
        name="followup"),
]

urlpatterns = url_wrap(unwrapped_urlconf)
@@ -86,71 +86,8 @@
 ws%0A%0A
-#TODO: remove %22followup%22 from the beginning of all these urls.%0A
 unwr
@@ -132,24 +132,73 @@
 nvalid-name%0A
+    #TODO: reverse pt_id and ftype in these urls%0A
     url(r'%5E(
@@ -214,25 +214,16 @@
 %5B0-9%5D+)/
-followup/
 (?P%3Cftyp
@@ -334,25 +334,16 @@
 %5B0-9%5D+)/
-followup/
 $',%0A    
@@ -413,25 +413,16 @@
  url(r'%5E
-followup/
 referral
@@ -610,25 +610,16 @@
  url(r'%5E
-followup/
 lab/(?P%3C
@@ -739,25 +739,16 @@
  url(r'%5E
-followup/
 vaccine/
@@ -884,17 +884,8 @@
 (r'%5E
-followup/
 gene

Remove extra followup/ prefix from followup app urls.