Use custom Person views from tailbone-corepos
This commit is contained in:
		
							parent
							
								
									f1a01af3c9
								
							
						
					
					
						commit
						366594c53a
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -1,14 +1,13 @@ | |||
| # -*- coding: utf-8 -*- | ||||
| # -*- coding: utf-8; -*- | ||||
| """ | ||||
| Person views | ||||
| """ | ||||
| 
 | ||||
| from __future__ import unicode_literals, absolute_import | ||||
| 
 | ||||
| from tailbone.views import people as base | ||||
| from tailbone_corepos.views import people as corepos_base | ||||
| 
 | ||||
| 
 | ||||
| class PeopleView(base.PeopleView): | ||||
| class PersonView(corepos_base.PersonView): | ||||
|     """ | ||||
|     Prevent edit/delete for Chuck Norris | ||||
|     """ | ||||
|  | @ -27,5 +26,5 @@ def includeme(config): | |||
|     config.add_view(base.PeopleAutocomplete, route_name='people.autocomplete', | ||||
|                     renderer='json', permission='people.list') | ||||
| 
 | ||||
|     PeopleView.defaults(config) | ||||
|     PersonView.defaults(config) | ||||
|     base.PersonNoteView.defaults(config) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar