Fix tests, fix Django deprecation warnings
This commit is contained in:
		
							parent
							
								
									d4fdd94db8
								
							
						
					
					
						commit
						92941f9a92
					
				
					 3 changed files with 3 additions and 6 deletions
				
			
		|  | @ -1,4 +1,2 @@ | ||||||
| include COPYING | include COPYING | ||||||
| include README.rst | include README.rst | ||||||
| include requirements.txt |  | ||||||
| include requirements/*.txt |  | ||||||
|  |  | ||||||
|  | @ -32,6 +32,7 @@ from django.views.generic import View | ||||||
| if not settings.configured: | if not settings.configured: | ||||||
|     settings.configure( |     settings.configure( | ||||||
|         DEBUG=True, |         DEBUG=True, | ||||||
|  |         SECRET_KEY="unused#secret", | ||||||
|         ROOT_URLCONF='tests', |         ROOT_URLCONF='tests', | ||||||
|         TEMPLATE_DIRS=['.'], |         TEMPLATE_DIRS=['.'], | ||||||
|         DATABASES={ |         DATABASES={ | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| # | # | ||||||
| # gvacommon - common parts of gnuviechadmin | # gvacommon - common parts of gnuviechadmin | ||||||
| # Copyright (C) 2015-2016  Jan Dittberner | # Copyright (C) 2015-2023  Jan Dittberner | ||||||
| # | # | ||||||
| # This program is free software: you can redistribute it and/or modify | # This program is free software: you can redistribute it and/or modify | ||||||
| # it under the terms of the GNU Affero General Public License as published by | # it under the terms of the GNU Affero General Public License as published by | ||||||
|  | @ -19,11 +19,9 @@ | ||||||
| This module defines mixins for gnuviechadmin views. | This module defines mixins for gnuviechadmin views. | ||||||
| 
 | 
 | ||||||
| """ | """ | ||||||
| from __future__ import unicode_literals |  | ||||||
| 
 |  | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.http import HttpResponseForbidden | from django.http import HttpResponseForbidden | ||||||
| from django.utils.translation import ugettext as _ | from django.utils.translation import gettext as _ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class StaffOrSelfLoginRequiredMixin(LoginRequiredMixin): | class StaffOrSelfLoginRequiredMixin(LoginRequiredMixin): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue