2012-11-26 10:05:51 +01:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
from openslides.projector.projector import SlideMixin
|
|
|
|
from openslides.projector.api import register_slidemodel
|
|
|
|
|
|
|
|
|
|
|
|
class ReleatedItem(SlideMixin, models.Model):
|
|
|
|
prefix = 'releateditem'
|
|
|
|
|
|
|
|
name = models.CharField(max_length='255')
|
|
|
|
|
2013-09-07 00:18:13 +02:00
|
|
|
class Meta:
|
|
|
|
verbose_name = 'Releated Item CHFNGEJ5634DJ34F'
|
|
|
|
|
2012-11-26 10:05:51 +01:00
|
|
|
def get_agenda_title(self):
|
|
|
|
return self.name
|
|
|
|
|
|
|
|
def get_agenda_title_supplement(self):
|
|
|
|
return 'test item'
|
|
|
|
|
2013-05-30 01:17:24 +02:00
|
|
|
def get_absolute_url(self, *args, **kwargs):
|
|
|
|
return '/absolute-url-here/'
|
|
|
|
|
|
|
|
|
2013-09-07 00:18:13 +02:00
|
|
|
class BadReleatedItem(SlideMixin, models.Model):
|
|
|
|
prefix = 'badreleateditem'
|
|
|
|
|
|
|
|
name = models.CharField(max_length='255')
|
|
|
|
|
|
|
|
|
2012-11-26 10:05:51 +01:00
|
|
|
register_slidemodel(ReleatedItem)
|
2013-09-07 00:18:13 +02:00
|
|
|
register_slidemodel(BadReleatedItem)
|