Commit 8d7e1e07 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

use settings.AUTH_USER_MODEL

parent 311b7a13
import logging import logging
from django.contrib.auth.models import User from django.conf import settings
from django.db import models from django.db import models
from django.urls import reverse from django.urls import reverse
...@@ -15,7 +15,7 @@ logger = logging.getLogger('rainboard.models') ...@@ -15,7 +15,7 @@ logger = logging.getLogger('rainboard.models')
class Article(NamedModel): class Article(NamedModel):
authors = models.ManyToManyField(User) authors = models.ManyToManyField(settings.AUTH_USER_MODEL)
year = models.PositiveSmallIntegerField() year = models.PositiveSmallIntegerField()
url = models.URLField(max_length=200) url = models.URLField(max_length=200)
pdf = models.URLField(max_length=200) pdf = models.URLField(max_length=200)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment