| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | # coding: utf-8 |
||
| 16 | class Twitter(Services): |
||
| 17 | """ |
||
| 18 | |||
| 19 | Twitter model to store what the kind |
||
| 20 | of data you want to handle |
||
| 21 | |||
| 22 | """ |
||
| 23 | tag = models.CharField(max_length=80, null=True, blank=True) |
||
| 24 | screen = models.CharField(max_length=80, null=True, blank=True) |
||
| 25 | since_id = models.BigIntegerField(null=True, blank=True) |
||
| 26 | max_id = models.BigIntegerField(null=True, blank=True) |
||
| 27 | count = models.IntegerField(null=True, blank=True) |
||
| 28 | trigger = models.ForeignKey('TriggerService') |
||
| 29 | |||
| 30 | class Meta: |
||
| 31 | app_label = 'django_th' |
||
| 32 | db_table = 'django_th_twitter' |
||
| 33 | |||
| 34 | def show(self): |
||
| 35 | """ |
||
| 36 | |||
| 37 | :return: string representing object |
||
| 38 | """ |
||
| 39 | return "My Twitter %s %s" % (self.screen, self.tag) |
||
| 40 | |||
| 41 | def __str__(self): |
||
| 42 | return "%s" % self.screen |
||
| 43 |