fnp
/
cas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[cas.git]
/
src
/
accounts
/
models.py
diff --git
a/src/accounts/models.py
b/src/accounts/models.py
index
819fcc0
..
b0be8d4
100644
(file)
--- a/
src/accounts/models.py
+++ b/
src/accounts/models.py
@@
-1,17
+1,6
@@
-from django.db import models
from cas_provider.signals import cas_collect_custom_attributes
from cas_provider.signals import cas_collect_custom_attributes
-class Service(models.Model):
- ordering = models.IntegerField()
- name = models.CharField(max_length=255)
- url = models.URLField()
- image = models.ImageField(upload_to='accounts/service/')
-
- class Meta:
- ordering = ('ordering', )
-
-
def user_attributes(sender, user, **kwargs):
return {
'firstname': user.first_name,
def user_attributes(sender, user, **kwargs):
return {
'firstname': user.first_name,