Moves staff_views to reporting/views
This commit is contained in:
		
							parent
							
								
									f9e26a2e49
								
							
						
					
					
						commit
						4664c4711a
					
				
					 2 changed files with 12 additions and 13 deletions
				
			
		|  | @ -1,6 +1,3 @@ | ||||||
| import forms |  | ||||||
| import views |  | ||||||
| 
 |  | ||||||
| from collections import namedtuple | from collections import namedtuple | ||||||
| 
 | 
 | ||||||
| from django.contrib.auth.decorators import user_passes_test | from django.contrib.auth.decorators import user_passes_test | ||||||
|  | @ -13,12 +10,14 @@ from django.http import Http404 | ||||||
| from django.shortcuts import render | from django.shortcuts import render | ||||||
| from functools import wraps | from functools import wraps | ||||||
| 
 | 
 | ||||||
| from models import commerce | from registrasion import forms | ||||||
| from models import inventory | from registrasion.models import commerce | ||||||
|  | from registrasion.models import inventory | ||||||
|  | from registrasion import views | ||||||
| 
 | 
 | ||||||
| from reporting.reports import get_all_reports | from reports import get_all_reports | ||||||
| from reporting.reports import Report | from reports import Report | ||||||
| from reporting.reports import report_view | from reports import report_view | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @user_passes_test(views._staff_only) | @user_passes_test(views._staff_only) | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| import views | import views | ||||||
| import staff_views | from reporting import views as reporting_views | ||||||
| 
 | 
 | ||||||
| from django.conf.urls import include | from django.conf.urls import include | ||||||
| from django.conf.urls import url | from django.conf.urls import url | ||||||
|  | @ -37,10 +37,10 @@ public = [ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| reports = [ | reports = [ | ||||||
|     url(r"^$", staff_views.reports_list, name="reports_list"), |     url(r"^$", reporting_views.reports_list, name="reports_list"), | ||||||
|     url(r"^credit_notes/?$", staff_views.credit_notes, name="credit_notes"), |     url(r"^credit_notes/?$", reporting_views.credit_notes, name="inventory"), | ||||||
|     url(r"^inventory/?$", staff_views.inventory, name="inventory"), |     url(r"^inventory/?$", reporting_views.inventory, name="inventory"), | ||||||
|     url(r"^items_sold/?$", staff_views.items_sold, name="items_sold"), |     url(r"^items_sold/?$", reporting_views.items_sold, name="items_sold"), | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer