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
AE UTBM
Sith
Commits
a6aac76d
Commit
a6aac76d
authored
Dec 15, 2015
by
Skia
Browse files
Alter date_join field in User
parent
787fd2f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/migrations/0002_auto_20151215_0827.py
0 → 100644
View file @
a6aac76d
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'core'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'user'
,
name
=
'date_joined'
,
field
=
models
.
DateTimeField
(
auto_now_add
=
True
,
verbose_name
=
'date joined'
),
),
]
core/models.py
View file @
a6aac76d
...
...
@@ -60,7 +60,7 @@ class User(AbstractBaseUser, PermissionsMixin):
'Unselect this instead of deleting accounts.'
),
)
date_joined
=
models
.
DateTimeField
(
_
(
'date joined'
),
default
=
timezone
.
now
)
date_joined
=
models
.
DateTimeField
(
_
(
'date joined'
),
auto_now_add
=
True
)
owner_group
=
models
.
ForeignKey
(
Group
,
related_name
=
"owned_user"
,
default
=
settings
.
AE_GROUPS
[
'root'
][
'id'
])
edit_group
=
models
.
ManyToManyField
(
Group
,
related_name
=
"editable_user"
,
blank
=
True
)
...
...
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