Exemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     super(GroupTopic, self).__init__(*args, **kwargs)
     
     # wiki parse if needed
     if self.pk and not self.converted and self.body.strip():
         self.body = wiki_convert(self.body)
         self.converted = True
         self.save()
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     super(Whiteboard, self).__init__(*args, **kwargs)
     
     # wiki parse if needed
     if self.pk and not self.converted and self.content:
         self.content = wiki_convert(self.content)
         self.converted = True
         self.save()
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     super(Event, self).__init__(*args, **kwargs)
     
     # wiki parse if needed
     if self.pk and not self.converted and self.description:
         self.description = wiki_convert(self.description)
         self.converted = True
         self.save()
Exemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        super(Whiteboard, self).__init__(*args, **kwargs)

        # wiki parse if needed
        if self.pk and not self.converted and self.content:
            self.content = wiki_convert(self.content)
            self.converted = True
            self.save()
Exemplo n.º 5
0
    def __init__(self, *args, **kwargs):
        super(GroupTopic, self).__init__(*args, **kwargs)

        # wiki parse if needed
        if self.pk and not self.converted and self.body.strip():
            self.body = wiki_convert(self.body)
            self.converted = True
            self.save()