Completed
Push — master ( 7a81b9...200bfb )
by Fox
01:33
created

Todoist.__str__()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
1
# coding: utf-8
2
from django.db import models
3
from django_th.models.services import Services
4
5
6
class Todoist(Services):
7
8
    """
9
        todoist model to be adapted for the new service
10
    """
11
    trigger = models.ForeignKey('TriggerService')
12
13
    class Meta:
14
        app_label = 'django_th'
15
        db_table = 'django_th_todoist'
16
17
    def __str__(self):
18
        return self.name
19
20
    def show(self):
21
        return "My Todoist %s" % self.name
22