From 95cd41f3c4c21d1d812a7461e3f86c76260a5c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Elizeche=20Land=C3=B3?= Date: Thu, 9 Apr 2020 17:18:21 -0400 Subject: [PATCH] hotfix for migrations --- core/migrations/{0006_status.py => 0005_add_status.py} | 9 +++++++-- core/models.py | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) rename core/migrations/{0006_status.py => 0005_add_status.py} (60%) diff --git a/core/migrations/0006_status.py b/core/migrations/0005_add_status.py similarity index 60% rename from core/migrations/0006_status.py rename to core/migrations/0005_add_status.py index 3a2c22bc..f6cfe0aa 100644 --- a/core/migrations/0006_status.py +++ b/core/migrations/0005_add_status.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2.12 on 2020-04-09 19:19 +# Generated by Django 2.2.11 on 2020-04-09 21:12 from django.db import migrations, models @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ('core', '0005_auto_20200409_1519'), + ('core', '0004_redefine_requestvotes'), ] operations = [ @@ -18,4 +18,9 @@ class Migration(migrations.Migration): ('active', models.BooleanField(db_index=True, default=True)), ], ), + migrations.AlterField( + model_name='helprequest', + name='address', + field=models.CharField(help_text='Para ayudar a quien quiera ayudarte saber la dirección, ciudad, barrio, referencias, o como llegar', max_length=400, null=True, verbose_name='Dirección'), + ), ] diff --git a/core/models.py b/core/models.py index 9b17ec42..c9473ac5 100644 --- a/core/models.py +++ b/core/models.py @@ -34,6 +34,8 @@ class HelpRequest(models.Model): "Dirección", help_text="Para ayudar a quien quiera ayudarte saber la dirección, ciudad, barrio, referencias, o como llegar", max_length=400, + blank=False, + null=True, ) location = models.PointField( "Ubicación",