| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | # coding: utf-8 |
||
| 7 | class Rss(Services): |
||
| 8 | """ |
||
| 9 | Model for RSS Service |
||
| 10 | """ |
||
| 11 | uuid = models.UUIDField(unique=True, default=uuid.uuid4, editable=False) |
||
| 12 | url = models.URLField(max_length=255) |
||
| 13 | trigger = models.ForeignKey('TriggerService') |
||
| 14 | |||
| 15 | class Meta: |
||
| 16 | app_label = 'django_th' |
||
| 17 | db_table = 'django_th_rss' |
||
| 18 | |||
| 19 | def show(self): |
||
| 20 | """ |
||
| 21 | |||
| 22 | :return: string representing object |
||
| 23 | """ |
||
| 24 | return "Services RSS %s %s" % (self.url, self.trigger) |
||
| 25 | |||
| 26 | def __str__(self): |
||
| 27 | return "%s" % self.url |
||
| 28 |