fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ede5faf
)
django1.5 compatibility fixes
author
gstrat
<gstrat@yawd.eu>
Tue, 15 Jan 2013 19:41:33 +0000
(21:41 +0200)
committer
gstrat
<gstrat@yawd.eu>
Tue, 15 Jan 2013 19:41:33 +0000
(21:41 +0200)
cas_provider/models.py
patch
|
blob
|
history
diff --git
a/cas_provider/models.py
b/cas_provider/models.py
index
8306d3c
..
253a407
100644
(file)
--- a/
cas_provider/models.py
+++ b/
cas_provider/models.py
@@
-1,3
+1,4
@@
+from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _
@@
-35,8
+36,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'