from django.db import models
from django.contrib.auth.models import User
+
class ServiceTicket(models.Model):
user = models.ForeignKey(User)
service = models.URLField(verify_exists=False)
def __unicode__(self):
return "%s (%s) - %s" % (self.user.username, self.service, self.created)
-
+
+
class LoginTicket(models.Model):
ticket = models.CharField(max_length=32)
created = models.DateTimeField(auto_now=True)
def __unicode__(self):
- return "%s - %s" % (self.ticket, self.created)
\ No newline at end of file
+ return "%s - %s" % (self.ticket, self.created)