Commit 1da5c798 authored by Jean-Baptiste's avatar Jean-Baptiste

update: use settings.AUTH_USER_MODEL

parent be67bd8a
Pipeline #3148 passed with stage
in 27 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-04 14:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_joboffer', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='joboffer',
options={},
),
]
from django.contrib.auth.models import User
from django.conf import settings
from django.db import models
from djangoldp.models import Model
......@@ -6,7 +6,7 @@ from djangoldp_skill.models import Skill
class JobOffer(Model):
author = models.ForeignKey(User, on_delete=models.CASCADE)
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=255, blank=True, null=True)
description = models.CharField(max_length=255, blank=True, null=True)
skills = models.ManyToManyField(Skill, blank=True)
......
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