Skip to content

Commit

Permalink
Update default value on hash
Browse files Browse the repository at this point in the history
  • Loading branch information
code-geek committed Feb 1, 2024
1 parent 79b3398 commit ef39559
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions sde_collections/migrations/0041_alter_candidateurl_hash.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 5.0.1 on 2024-02-01 20:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("sde_collections", "0040_candidateurl_hash"),
]

operations = [
migrations.AlterField(
model_name="candidateurl",
name="hash",
field=models.CharField(
blank=True, default="1", max_length=32, verbose_name="Hash"
),
),
]
2 changes: 1 addition & 1 deletion sde_collections/models/candidate_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CandidateURL(models.Model):
Collection, on_delete=models.CASCADE, related_name="candidate_urls"
)
url = models.CharField("URL")
hash = models.CharField("Hash", max_length=32, blank=True, default="")
hash = models.CharField("Hash", max_length=32, blank=True, default="1")
scraped_title = models.CharField(
"Scraped Title",
default="",
Expand Down

0 comments on commit ef39559

Please sign in to comment.