Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Samir
django-cas-server
Commits
13af3ccd
Commit
13af3ccd
authored
Mar 29, 2017
by
Jorik Kraaikamp
Browse files
added the bigger username migration and change
parent
5410aee3
Changes
2
Hide whitespace changes
Inline
Side-by-side
cas_server/migrations/0013_auto_20170329_1748.py
0 → 100644
View file @
13af3ccd
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-29 15:48
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'cas_server'
,
'0012_auto_20170328_1610'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'user'
,
name
=
'username'
,
field
=
models
.
CharField
(
max_length
=
250
),
),
]
cas_server/models.py
View file @
13af3ccd
...
...
@@ -273,7 +273,7 @@ class User(models.Model):
#: The session key of the current authenticated user
session_key
=
models
.
CharField
(
max_length
=
40
,
blank
=
True
,
null
=
True
)
#: The username of the current authenticated user
username
=
models
.
CharField
(
max_length
=
3
0
)
username
=
models
.
CharField
(
max_length
=
25
0
)
#: Last time the authenticated user has do something (auth, fetch ticket, etc…)
date
=
models
.
DateTimeField
(
auto_now
=
True
)
#: last time the user logged
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment