From 6a01dd599e63479d1be1d839721455330914dc38 Mon Sep 17 00:00:00 2001 From: Zamil Majdy <z.majdy1996@gmail.com> Date: Tue, 28 Mar 2017 14:18:25 +0700 Subject: [PATCH] #140654507 #8 Rename alamat to address --- core/migrations/0004_auto_20170328_1417.py | 20 ++++++++++++++++++++ core/models/accounts.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 core/migrations/0004_auto_20170328_1417.py diff --git a/core/migrations/0004_auto_20170328_1417.py b/core/migrations/0004_auto_20170328_1417.py new file mode 100644 index 00000000..d0801ce1 --- /dev/null +++ b/core/migrations/0004_auto_20170328_1417.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-03-28 07:17 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0003_auto_20170328_1400'), + ] + + operations = [ + migrations.RenameField( + model_name='company', + old_name='alamat', + new_name='address', + ), + ] diff --git a/core/models/accounts.py b/core/models/accounts.py index 8adf9adb..e94c7f04 100644 --- a/core/models/accounts.py +++ b/core/models/accounts.py @@ -69,7 +69,7 @@ class Company(models.Model): description = models.TextField() verified = models.BooleanField(default=False) logo = models.FileField(upload_to=get_company_logo_file_path, null=True, blank=True) - alamat = models.CharField(max_length=1000, blank=True, null=True) + address = models.CharField(max_length=1000, blank=True, null=True) @property def name(self): -- GitLab