From bbe467e230ca33ac167df2c28e632aef5bde54f7 Mon Sep 17 00:00:00 2001 From: Jure Ursic <jure@colab.coop> Date: Thu, 23 Apr 2020 14:54:04 +0200 Subject: [PATCH] Bio -> Job migration for user model --- .../migrations/0003_auto_20200416_1157.py | 20 +++++++++++++++++++ djangoldp_profile/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 djangoldp_profile/migrations/0003_auto_20200416_1157.py diff --git a/djangoldp_profile/migrations/0003_auto_20200416_1157.py b/djangoldp_profile/migrations/0003_auto_20200416_1157.py new file mode 100644 index 0000000..a48b7cb --- /dev/null +++ b/djangoldp_profile/migrations/0003_auto_20200416_1157.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.29 on 2020-04-16 11:57 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('djangoldp_profile', '0002_auto_20190917_1141'), + ] + + operations = [ + migrations.RenameField( + model_name='profile', + old_name='bio', + new_name='job', + ), + ] diff --git a/djangoldp_profile/models.py b/djangoldp_profile/models.py index d2f331d..0ccee29 100644 --- a/djangoldp_profile/models.py +++ b/djangoldp_profile/models.py @@ -11,7 +11,7 @@ class Profile(Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="profile") slug = models.SlugField(unique=True) available = models.NullBooleanField(blank=True) - bio = models.CharField(max_length=150, blank=True) + job = models.CharField(max_length=150, blank=True) city = models.CharField(max_length=255, blank=True) phone = models.CharField(max_length=255, blank=True) website = models.URLField(blank=True) -- GitLab