Completed
Push — master ( 238c49...76cece )
by Fox
01:33
created

Instapush.__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
dl 0
loc 2
rs 10
c 1
b 0
f 0
1
# coding: utf-8
2
from django.db import models
3
from django_th.models.services import Services
4
5
6
class Instapush(Services):
7
    """
8
9
        wallabag model to be adapted for the new service
10
        to store url in your account
11
12
    """
13
    app_id = models.CharField(max_length=255)
14
    app_secret = models.CharField(max_length=255)
15
    event_name = models.CharField(max_length=255)
16
    tracker_name = models.CharField(max_length=80)
17
    trigger = models.ForeignKey('TriggerService')
18
19
    class Meta:
20
        app_label = 'django_th'
21
        db_table = 'django_th_instapush'
22
23
    def __str__(self):
24
        return self.name
25
26
    def show(self):
27
        return "My Instapush %s" % self.name
28