Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
8d7e1e07
Commit
8d7e1e07
authored
Jan 12, 2018
by
Guilhem Saurel
Browse files
use settings.AUTH_USER_MODEL
parent
311b7a13
Changes
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
8d7e1e07
import
logging
from
django.con
trib.auth.models
import
U
se
r
from
django.con
f
import
se
ttings
from
django.db
import
models
from
django.urls
import
reverse
...
...
@@ -15,7 +15,7 @@ logger = logging.getLogger('rainboard.models')
class
Article
(
NamedModel
):
authors
=
models
.
ManyToManyField
(
U
se
r
)
authors
=
models
.
ManyToManyField
(
se
ttings
.
AUTH_USER_MODEL
)
year
=
models
.
PositiveSmallIntegerField
()
url
=
models
.
URLField
(
max_length
=
200
)
pdf
=
models
.
URLField
(
max_length
=
200
)
...
...
Write
Preview
Markdown
is supported
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