Skip to content

Commit

Permalink
Migrate sublet field to make link field optional (#269)
Browse files Browse the repository at this point in the history
:shipit:
  • Loading branch information
dr-Jess authored Mar 15, 2024
1 parent 11650df commit 32a8a34
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/0004_alter_sublet_external_link.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.9 on 2024-03-15 20:50

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("sublet", "0003_alter_sublet_baths"),
]

operations = [
migrations.AlterField(
model_name="sublet",
name="external_link",
field=models.URLField(blank=True, max_length=255, null=True),
),
]
2 changes: 1 addition & 1 deletion backend/sublet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Sublet(models.Model):
beds = 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)
external_link = models.URLField(max_length=255, null=True, blank=True)
price = models.IntegerField()
negotiable = models.BooleanField(default=True)
created_at = models.DateTimeField(auto_now_add=True)
Expand Down

0 comments on commit 32a8a34

Please sign in to comment.