from django.urls import path, include

from fiscal import views

urlpatterns = [
    # organizations
    path(
        "organizations/",
        include(
            [
                path("", views.AllOrganizations.as_view(), name="all_organizations"),
                path(
                    "add/", views.OrganizationCreate.as_view(), name="organization_add"
                ),
            ]
        ),
    ),
    path(
        "organization/<str:org_domain>/",
        include(
            [
                path(
                    "", views.OrganizationDetails.as_view(), name="organization_details"
                ),
                path(
                    "edit/",
                    views.OrganizationUpdate.as_view(),
                    name="organization_edit",
                ),
                path(
                    "delete/",
                    views.OrganizationDelete.as_view(),
                    name="organization_delete",
                ),
            ]
        ),
    ),
    # memberships
    path(
        "memberships/",
        include(
            [
                path("", views.AllMemberships.as_view(), name="all_memberships"),
                path("add/", views.MembershipCreate.as_view(), name="membership_add"),
            ]
        ),
    ),
    path(
        "membership/<int:membership_id>/",
        include(
            [
                path("", views.MembershipDetails.as_view(), name="membership_details"),
                path("edit/", views.MembershipUpdate.as_view(), name="membership_edit"),
                path(
                    "members/",
                    views.MembershipMembers.as_view(),
                    name="membership_members",
                ),
                path(
                    "delete/",
                    views.MembershipDelete.as_view(),
                    name="membership_delete",
                ),
            ]
        ),
    ),
    # sponsorships
    path(
        "sponsorships/add/", views.SponsorshipCreate.as_view(), name="sponsorship_add"
    ),
    path(
        "sponsorship/<int:pk>/delete/",
        views.SponsorshipDelete.as_view(),
        name="sponsorship_delete",
    ),
]

@@ -1,12 +1,27 @@
+# flake8: noqa%0A
 from django.
@@ -114,33 +114,24 @@
 ns%0A    path(
-%0A        
 %22organizatio
@@ -131,32 +131,24 @@
 nizations/%22,
-%0A       
  include(%0A  
@@ -144,39 +144,18 @@
 include(
+%5B
 %0A
-            %5B%0A        
         
@@ -236,42 +236,13 @@
     
-        path(%0A                    
+path(
 %22add
@@ -308,57 +308,17 @@
 add%22
-%0A                ),%0A            %5D%0A        
 ),%0A    
+%5D)
 ),%0A 
@@ -325,25 +325,16 @@
    path(
-%0A        
 %22organiz
@@ -354,32 +354,24 @@
 g_domain%3E/%22,
-%0A       
  include(%0A  
@@ -371,65 +371,23 @@
 ude(
-%0A            %5B%0A                path(%0A                    
+%5B%0A        path(
 %22%22, 
@@ -450,33 +450,16 @@
 details%22
-%0A                
 ),%0A     
@@ -465,70 +465,21 @@
     
-  
-      path(%0A                    %22edit/%22,%0A                   
+path(%22edit/%22,
  vie
@@ -510,36 +510,16 @@
 _view(),
-%0A                   
  name=%22o
@@ -539,44 +539,19 @@
 dit%22
+)
 ,%0A
-                ),%0A       
         
  pat
@@ -550,65 +550,23 @@
     
- 
 path(
-%0A                    %22delete/%22,%0A                   
+%22delete/%22,
  vie
@@ -597,36 +597,16 @@
 _view(),
-%0A                   
  name=%22o
@@ -628,58 +628,17 @@
 ete%22
-,%0A                ),%0A            %5D%0A        
 ),%0A    
+%5D)
 ),%0A 
@@ -659,33 +659,24 @@
 ps%0A    path(
-%0A        
 %22memberships
@@ -678,24 +678,16 @@
 ships/%22,
-%0A       
  include
@@ -691,36 +691,18 @@
 ude(
+%5B
 %0A
-            %5B%0A     
         
    p
@@ -689,35 +689,32 @@
 clude(%5B%0A        
-   
 path(%22%22, views.A
@@ -759,32 +759,24 @@
 berships%22),%0A
-        
         path
@@ -850,33 +850,10 @@
     
-        %5D%0A        ),%0A    
+%5D)
 ),%0A 
@@ -860,25 +860,16 @@
    path(
-%0A        
 %22members
@@ -894,24 +894,16 @@
 p_id%3E/%22,
-%0A       
  include
@@ -907,36 +907,18 @@
 ude(
+%5B
 %0A
-            %5B%0A     
         
    p
@@ -909,27 +909,24 @@
 e(%5B%0A        
-   
 path(%22%22, vie
@@ -989,32 +989,24 @@
 %22),%0A        
-   
-     
 path(%22edit/%22
@@ -1078,73 +1078,24 @@
     
- 
-       path(%0A                    %22members/%22,%0A                   
+path(%22members/%22,
  vie
@@ -1125,36 +1125,16 @@
 _view(),
-%0A                   
  name=%22m
@@ -1155,43 +1155,19 @@
 ers%22
+)
 ,%0A
-                ),%0A      
         
   pa
@@ -1166,66 +1166,23 @@
     
-  
 path(
-%0A                    %22delete/%22,%0A                   
+%22delete/%22,
  vie
@@ -1215,28 +1215,8 @@
 w(),
-%0A                   
  nam
@@ -1240,58 +1240,17 @@
 ete%22
-,%0A                ),%0A            %5D%0A        
 ),%0A    
+%5D)
 ),%0A 
@@ -1272,33 +1272,24 @@
 ps%0A    path(
-%0A        
 %22sponsorship
@@ -1354,21 +1354,16 @@
 hip_add%22
-%0A    
 ),%0A    p
@@ -1366,25 +1366,16 @@
    path(
-%0A        
 %22sponsor
@@ -1397,24 +1397,16 @@
 elete/%22,
-%0A       
  views.S
@@ -1432,24 +1432,16 @@
 _view(),
-%0A       
  name=%22s
@@ -1458,19 +1458,13 @@
 _delete%22
-,%0A    
 ),%0A%5D%0A

Revert black formatting for urls