Repair the master
This commit is contained in:
parent
172581d557
commit
60b6ef1415
25
openslides/core/migrations/0006_auto_20180123_0903.py
Normal file
25
openslides/core/migrations/0006_auto_20180123_0903.py
Normal file
@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.8 on 2018-01-23 08:03
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0005_auto_20170412_1258'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='projector',
|
||||
name='height',
|
||||
field=models.PositiveIntegerField(default=768),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='projector',
|
||||
name='width',
|
||||
field=models.PositiveIntegerField(default=1024),
|
||||
),
|
||||
]
|
@ -9,6 +9,7 @@ angular.module('OpenSlidesApp.core', [
|
||||
'ngAnimate',
|
||||
'ngBootbox',
|
||||
'ngSanitize', // TODO: only use this in functions that need it.
|
||||
'ngStorage',
|
||||
'ui.bootstrap',
|
||||
'ui.bootstrap.datetimepicker',
|
||||
'ui.tree',
|
||||
@ -43,6 +44,13 @@ angular.module('OpenSlidesApp.core', [
|
||||
}
|
||||
])
|
||||
|
||||
.config([
|
||||
'$sessionStorageProvider',
|
||||
function ($sessionStorageProvider) {
|
||||
$sessionStorageProvider.setKeyPrefix('OpenSlides');
|
||||
}
|
||||
])
|
||||
|
||||
.factory('autoupdate', [
|
||||
'DS',
|
||||
'REALM',
|
||||
|
@ -16,7 +16,6 @@ angular.module('OpenSlidesApp.core.site', [
|
||||
'ngDialog',
|
||||
'ngFileSaver',
|
||||
'ngMessages',
|
||||
'ngStorage',
|
||||
'ckeditor',
|
||||
'luegg.directives',
|
||||
'xeditable',
|
||||
@ -416,13 +415,6 @@ angular.module('OpenSlidesApp.core.site', [
|
||||
}
|
||||
])
|
||||
|
||||
.config([
|
||||
'$sessionStorageProvider',
|
||||
function ($sessionStorageProvider) {
|
||||
$sessionStorageProvider.setKeyPrefix('OpenSlides');
|
||||
}
|
||||
])
|
||||
|
||||
.factory('ProjectorMessageForm', [
|
||||
'Editor',
|
||||
'gettextCatalog',
|
||||
|
@ -404,7 +404,7 @@ class MotionViewSet(ModelViewSet):
|
||||
if extension is not None:
|
||||
# Find the special "state" comment field.
|
||||
for id, field in config['motions_comments'].items():
|
||||
if 'forState' in field and field['forState'] is True:
|
||||
if isinstance(field, dict) and 'forState' in field and field['forState'] is True:
|
||||
motion.comments[id] = extension
|
||||
break
|
||||
|
||||
|
@ -64,11 +64,11 @@ class TemplateView(View):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
if self.template_name is None:
|
||||
raise ImproperlyConfigured("'template_name' is not provided")
|
||||
raise ImproperlyConfigured("'template_name' is not provided.")
|
||||
|
||||
if 'template' not in self.state:
|
||||
if self.template_name not in self.state:
|
||||
with open(finders.find(self.template_name)) as template:
|
||||
self.state['template'] = template.read()
|
||||
self.state[self.template_name] = template.read()
|
||||
|
||||
def get(self, *args: Any, **kwargs: Any) -> HttpResponse:
|
||||
return HttpResponse(self.state['template'])
|
||||
return HttpResponse(self.state[self.template_name])
|
||||
|
Loading…
Reference in New Issue
Block a user