Skip to content

Commit

Permalink
Merge pull request #57 from bartczak-pa/dev
Browse files Browse the repository at this point in the history
Updated Hobby link field to CharField
  • Loading branch information
bartczak-pa authored Sep 5, 2024
2 parents a264fa2 + 026b5b7 commit 517b352
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions bartczak_tech/portfolio/migrations/0004_alter_hobby_link.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.13 on 2024-09-05 15:10

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('portfolio', '0003_project'),
]

operations = [
migrations.AlterField(
model_name='hobby',
name='link',
field=models.CharField(blank=True, max_length=200),
),
]
2 changes: 1 addition & 1 deletion bartczak_tech/portfolio/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Hobby(models.Model):
name = models.CharField(max_length=50)
description = models.TextField(max_length=300)
icon = models.CharField(max_length=50, default="fas fa-code")
link = models.URLField(max_length=200, blank=True)
link = models.CharField(max_length=200, blank=True)
link_text = models.CharField(max_length=30, blank=True)

class Meta:
Expand Down

0 comments on commit 517b352

Please sign in to comment.