-from django.contrib.auth.models import User
+from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from random import Random
class ServiceTicket(BaseTicket):
- user = models.ForeignKey(User, verbose_name=_('user'))
- service = models.URLField(_('service'), verify_exists=False)
+ user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_('user'))
+ service = models.URLField(_('service'))
prefix = 'ST'