Skip to content

Commit

Permalink
Alter baths to be 1-point decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-Jess committed Mar 5, 2024
1 parent ca01042 commit 9f47afd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions backend/sublet/migrations/0003_alter_sublet_baths.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.9 on 2024-03-05 21:16

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("sublet", "0002_auto_20240209_1649"),
]

operations = [
migrations.AlterField(
model_name="sublet",
name="baths",
field=models.DecimalField(blank=True, decimal_places=1, max_digits=3, null=True),
),
]
2 changes: 1 addition & 1 deletion backend/sublet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Sublet(models.Model):
title = models.CharField(max_length=255)
address = models.CharField(max_length=255, null=True, blank=True)
beds = models.IntegerField(null=True, blank=True)
baths = models.IntegerField(null=True, blank=True)
baths = models.DecimalField(max_digits=3, decimal_places=1, null=True, blank=True)
description = models.TextField(null=True, blank=True)
external_link = models.URLField(max_length=255)
price = models.IntegerField()
Expand Down

0 comments on commit 9f47afd

Please sign in to comment.