Completed
Push — master ( 3b4033...849b73 )
by Fox
49s
created

Tumblr.show()   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 Tumblr(Services):
7
8
    """
9
        tumblr model to be adapted for the new service
10
    """
11
    blogname = models.CharField(max_length=80)
12
    tag = models.CharField(max_length=80, blank=True)
13
    trigger = models.ForeignKey('TriggerService')
14
15
    class Meta:
16
        app_label = 'django_th'
17
        db_table = 'django_th_tumblr'
18
19
    def __str__(self):
20
        return self.blogname
21
22
    def show(self):
23
        return "My Tumblr %s" % self.blogname
24