Brian S. Stephan e8e42cc580 twitter: replace since_id with mentions_since_id
we'll want to treat the since_ids for mentions and (theoretical)
timelines differently, i think, so might as well just set up the split
out field now
2016-01-24 18:46:06 -06:00

28 lines
769 B
Python

"""Twitter settings models."""
import logging
from django.db import models
from ircbot.models import IrcChannel
log = logging.getLogger('twitter.models')
class TwitterClient(models.Model):
"""Track twitter settings and similar."""
oauth_token = models.CharField(max_length=256, default='', blank=True)
oauth_token_secret = models.CharField(max_length=256, default='', blank=True)
mentions_output_channel = models.ForeignKey(IrcChannel, related_name='mentions_twitter_client', default=None,
null=True, blank=True)
mentions_since_id = models.PositiveIntegerField(default=1, blank=True)
class Meta:
permissions = (
('send_tweets', "Can send tweets via IRC"),
)