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
673f4659
Commit
673f4659
authored
Mar 26, 2016
by
Valentin Samir
Browse files
Simplify first migration, should fix #1
parent
f6d436ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
cas_server/migrations/0001_squashed_0021_auto_20150611_2102.py
View file @
673f4659
...
...
@@ -98,7 +98,7 @@ class Migration(migrations.Migration):
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'username'
,
models
.
CharField
(
max_length
=
30
)),
(
'date'
,
models
.
DateTimeField
(
auto_now
=
True
,
auto_now_add
=
True
)),
(
'session'
,
models
.
OneToOneField
(
related_name
=
'cas_server_user'
,
null
=
True
,
blank
=
True
,
to
=
'sessions.Session'
)),
(
'session
_key
'
,
models
.
CharField
(
max_length
=
40
,
null
=
True
,
blank
=
True
)),
],
options
=
{
},
...
...
@@ -310,28 +310,8 @@ class Migration(migrations.Migration):
field
=
models
.
CharField
(
help_text
=
'name of an attribut to send to the service, use * for all attributes'
,
max_length
=
255
,
verbose_name
=
'name'
),
preserve_default
=
True
,
),
migrations
.
AlterUniqueTogether
(
name
=
'user'
,
unique_together
=
set
([(
'username'
,
'session'
)]),
),
migrations
.
AlterField
(
model_name
=
'user'
,
name
=
'session'
,
field
=
models
.
OneToOneField
(
related_name
=
'cas_server_user'
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
blank
=
True
,
to
=
'sessions.Session'
),
preserve_default
=
True
,
),
migrations
.
AddField
(
model_name
=
'user'
,
name
=
'session_key'
,
field
=
models
.
CharField
(
max_length
=
40
,
null
=
True
,
blank
=
True
),
preserve_default
=
True
,
),
migrations
.
AlterUniqueTogether
(
name
=
'user'
,
unique_together
=
set
([(
'username'
,
'session_key'
)]),
),
migrations
.
RemoveField
(
model_name
=
'user'
,
name
=
'session'
,
),
]
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