delete orders
This commit is contained in:
		
					parent
					
						
							
								bb13644b06
							
						
					
				
			
			
				commit
				
					
						b8be9f3915
					
				
			
		
					 2 changed files with 15 additions and 27 deletions
				
			
		| 
						 | 
					@ -84,18 +84,18 @@ INSTALLED_APPS = (
 | 
				
			||||||
    'djangocms_file',
 | 
					    'djangocms_file',
 | 
				
			||||||
    'djangocms_picture',
 | 
					    'djangocms_picture',
 | 
				
			||||||
    'djangocms_video',
 | 
					    'djangocms_video',
 | 
				
			||||||
    'djangocms_flash',
 | 
					    # 'djangocms_flash',
 | 
				
			||||||
    'djangocms_googlemap',
 | 
					    # 'djangocms_googlemap',
 | 
				
			||||||
    'djangocms_inherit',
 | 
					    # 'djangocms_inherit',
 | 
				
			||||||
    'djangocms_link',
 | 
					    # 'djangocms_link',
 | 
				
			||||||
    'djangocms_teaser',
 | 
					    # 'djangocms_teaser',
 | 
				
			||||||
    'djangocms_page_meta',
 | 
					    'djangocms_page_meta',
 | 
				
			||||||
    'djangocms_text_ckeditor',
 | 
					    'djangocms_text_ckeditor',
 | 
				
			||||||
    'djangocms_admin_style',
 | 
					    'djangocms_admin_style',
 | 
				
			||||||
    'cmsplugin_filer_file',
 | 
					    'cmsplugin_filer_file',
 | 
				
			||||||
    'cmsplugin_filer_folder',
 | 
					    'cmsplugin_filer_folder',
 | 
				
			||||||
    'cmsplugin_filer_link',
 | 
					    'cmsplugin_filer_link',
 | 
				
			||||||
     'cmsplugin_filer_teaser',
 | 
					    # 'cmsplugin_filer_teaser',
 | 
				
			||||||
    'cmsplugin_filer_video',
 | 
					    'cmsplugin_filer_video',
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # blog
 | 
					    # blog
 | 
				
			||||||
| 
						 | 
					@ -103,10 +103,9 @@ INSTALLED_APPS = (
 | 
				
			||||||
    'reversion',
 | 
					    'reversion',
 | 
				
			||||||
    # ungleich
 | 
					    # ungleich
 | 
				
			||||||
    'ungleich',
 | 
					    'ungleich',
 | 
				
			||||||
#    'ungleich_page',
 | 
					    'ungleich_page',
 | 
				
			||||||
    'hosting',
 | 
					    'hosting',
 | 
				
			||||||
    'digitalglarus',
 | 
					    'digitalglarus',
 | 
				
			||||||
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
MIDDLEWARE_CLASSES = (
 | 
					MIDDLEWARE_CLASSES = (
 | 
				
			||||||
| 
						 | 
					@ -176,7 +175,7 @@ CMS_TEMPLATES = (
 | 
				
			||||||
DATABASES = {
 | 
					DATABASES = {
 | 
				
			||||||
    'default': {
 | 
					    'default': {
 | 
				
			||||||
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
 | 
					        'ENGINE': 'django.db.backends.postgresql_psycopg2',
 | 
				
			||||||
        'NAME': 'app_new',
 | 
					        'NAME': 'app',
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -280,12 +279,12 @@ CACHES = {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if LOGIN_URL is None:
 | 
					if LOGIN_URL is None:
 | 
				
			||||||
#    LOGIN_URL = APP_ROOT_ENDPOINT + 'login/'
 | 
					    LOGIN_URL = APP_ROOT_ENDPOINT + 'login/'
 | 
				
			||||||
#if LOGOUT_URL is None:
 | 
					if LOGOUT_URL is None:
 | 
				
			||||||
#    LOGOUT_URL = APP_ROOT_ENDPOINT + 'logout/'
 | 
					    LOGOUT_URL = APP_ROOT_ENDPOINT + 'logout/'
 | 
				
			||||||
#if LOGIN_REDIRECT_URL is None:
 | 
					if LOGIN_REDIRECT_URL is None:
 | 
				
			||||||
#    LOGIN_REDIRECT_URL = APP_ROOT_ENDPOINT
 | 
					    LOGIN_REDIRECT_URL = APP_ROOT_ENDPOINT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Static files (CSS, JavaScript, Images)
 | 
					# Static files (CSS, JavaScript, Images)
 | 
				
			||||||
# https://docs.djangoproject.com/en/1.7/howto/static-files/
 | 
					# https://docs.djangoproject.com/en/1.7/howto/static-files/
 | 
				
			||||||
| 
						 | 
					@ -337,7 +336,6 @@ STATICFILES_FINDERS = (
 | 
				
			||||||
THUMBNAIL_PROCESSORS = (
 | 
					THUMBNAIL_PROCESSORS = (
 | 
				
			||||||
    'easy_thumbnails.processors.colorspace',
 | 
					    'easy_thumbnails.processors.colorspace',
 | 
				
			||||||
    'easy_thumbnails.processors.autocrop',
 | 
					    'easy_thumbnails.processors.autocrop',
 | 
				
			||||||
    #'easy_thumbnails.processors.scale_and_crop',
 | 
					 | 
				
			||||||
    'filer.thumbnail_processors.scale_and_crop_with_subject_location',
 | 
					    'filer.thumbnail_processors.scale_and_crop_with_subject_location',
 | 
				
			||||||
    'easy_thumbnails.processors.filters',
 | 
					    'easy_thumbnails.processors.filters',
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					@ -443,12 +441,6 @@ PARLER_LANGUAGES = {1: ({'code': 'en-us'}, {'code': 'de'},)}
 | 
				
			||||||
AUTH_USER_MODEL = 'membership.CustomUser'
 | 
					AUTH_USER_MODEL = 'membership.CustomUser'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
ALLOWED_HOSTS = [
 | 
					 | 
				
			||||||
    "*"
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# PAYMENT
 | 
					# PAYMENT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
STRIPE_DESCRIPTION_ON_PAYMENT = "Payment for ungleich GmbH services"
 | 
					STRIPE_DESCRIPTION_ON_PAYMENT = "Payment for ungleich GmbH services"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -244,10 +244,6 @@ class OrdersHostingDeleteView(LoginRequiredMixin,DeleteView):
 | 
				
			||||||
    login_url=reverse_lazy('hosting:login')
 | 
					    login_url=reverse_lazy('hosting:login')
 | 
				
			||||||
    success_url = reverse_lazy('hosting:orders')
 | 
					    success_url = reverse_lazy('hosting:orders')
 | 
				
			||||||
    model = HostingOrder
 | 
					    model = HostingOrder
 | 
				
			||||||
    def get_queryset(self):
 | 
					 | 
				
			||||||
        user = self.request.user
 | 
					 | 
				
			||||||
        self.queryset = VirtualMachinePlan.objects.active(user)
 | 
					 | 
				
			||||||
        return super(VirtualMachinesPlanListView, self).get_queryset()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class VirtualMachinesPlanListView(LoginRequiredMixin, ListView):
 | 
					class VirtualMachinesPlanListView(LoginRequiredMixin, ListView):
 | 
				
			||||||
    template_name = "hosting/virtual_machines.html"
 | 
					    template_name = "hosting/virtual_machines.html"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue