OpenSlides/tests/agenda/models.py
Norman Jäckel 9e5088d49e Fixed #683
2013-05-31 13:15:55 +02:00

23 lines
516 B
Python

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')
def get_agenda_title(self):
return self.name
def get_agenda_title_supplement(self):
return 'test item'
def get_absolute_url(self, *args, **kwargs):
return '/absolute-url-here/'
register_slidemodel(ReleatedItem)