OpenSlides/openslides/system/models.py

39 lines
1.1 KiB
Python
Raw Normal View History

2011-07-31 10:46:29 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
openslides.system.models
~~~~~~~~~~~~~~~~~~~~~~~~
Models for the system app.
:copyright: 2011 by the OpenSlides team, see AUTHORS.
:license: GNU GPL, see LICENSE for more details.
"""
from django.db import models
from django.utils.translation import ugettext as _
2011-07-31 10:46:29 +02:00
DEFAULT_DATA = {
'event_name': 'OpenSlides',
'event_description': 'Presentation and voting system',
'agenda_countdown_time': 60,
2011-07-31 10:46:29 +02:00
'application_min_supporters': 4,
'application_preamble': 'Die Versammlung möge beschließen,',
'application_pdf_title': _('Applications'),
'assignment_pdf_title': _('Elections'),
'system_url': 'http://127.0.0.1:8000',
2011-11-14 23:12:52 +01:00
'system_welcometext': 'Welcome to OpenSlides!',
2011-07-31 10:46:29 +02:00
}
class Config(models.Model):
id = models.CharField(max_length=100, primary_key=True)
value = models.CharField(max_length=100)
def __unicode__(self):
return self.id
class Meta:
permissions = (
2011-09-04 12:21:58 +02:00
('can_manage_system', "Can manage system configuration"),
2011-07-31 10:46:29 +02:00
)