fnp
/
django-cas-provider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
django 1.6 comp fix
[django-cas-provider.git]
/
cas_provider
/
models.py
diff --git
a/cas_provider/models.py
b/cas_provider/models.py
index
8306d3c
..
4b75fca
100644
(file)
--- a/
cas_provider/models.py
+++ b/
cas_provider/models.py
@@
-1,4
+1,4
@@
-from django.con
trib.auth.models import User
+from django.con
f import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from random import Random
from django.db import models
from django.utils.translation import ugettext_lazy as _
from random import Random
@@
-35,8
+35,8
@@
class BaseTicket(models.Model):
class ServiceTicket(BaseTicket):
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'
prefix = 'ST'