2015-06-16 20:27:44 -05:00
|
|
|
"""Twitter settings models."""
|
|
|
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
log = logging.getLogger('twitter.models')
|
|
|
|
|
|
|
|
|
|
|
|
class TwitterClient(models.Model):
|
|
|
|
|
|
|
|
"""Track twitter settings and similar."""
|
|
|
|
|
|
|
|
since_id = models.PositiveIntegerField()
|
|
|
|
output_channel = models.CharField(max_length=200, default='', blank=True)
|
|
|
|
oauth_token = models.CharField(max_length=256, default='', blank=True)
|
|
|
|
oauth_token_secret = models.CharField(max_length=256, default='', blank=True)
|
2015-06-20 10:08:51 -05:00
|
|
|
|
|
|
|
class Meta:
|
|
|
|
permissions = (
|
|
|
|
('send_tweets', "Can send tweets via IRC"),
|
|
|
|
)
|