Completed
Push — master ( c6d1c5...bff144 )
by Fox
01:23
created

Pushbullet.__str__()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 2
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 2
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 View Code Duplication
class Pushbullet(Services):
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
7
8
    """
9
        todoist model to be adapted for the new service
10
    """
11
    type = models.CharField(max_length=4, default='note')
12
    device = models.CharField(max_length=80, blank=True)
13
    email = models.EmailField(max_length=255, blank=True)
14
    channel_tag = models.CharField(max_length=80, blank=True)
15
    trigger = models.ForeignKey('TriggerService')
16
17
    class Meta:
18
        app_label = 'django_th'
19
        db_table = 'django_th_pushbullet'
20
21
    def __str__(self):
22
        return self.name
23
24
    def show(self):
25
        return "My Pushbullet %s" % self.name
26