Skip to content

Commit

Permalink
Allow area search area description to be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiliaMakelaVincit committed Aug 30, 2023
1 parent d8fb17a commit af8f297
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions plotsearch/migrations/0029_alter_areasearch_description_area.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.13 on 2023-08-30 07:42

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("plotsearch", "0028_faq_translation_fields"),
]

operations = [
migrations.AlterField(
model_name="areasearch",
name="description_area",
field=models.TextField(blank=True),
),
]
2 changes: 1 addition & 1 deletion plotsearch/models/plot_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class AreaSearch(models.Model):
enum=AreaSearchLessor, default=None, null=True, blank=True, max_length=30
)

description_area = models.TextField()
description_area = models.TextField(blank=True)

address = models.CharField(max_length=255, null=True, blank=True)
district = models.CharField(max_length=255, null=True, blank=True)
Expand Down

0 comments on commit af8f297

Please sign in to comment.