Skip to content

Commit

Permalink
Grants: fix githubHandle is null (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
estyxx authored Jan 3, 2024
1 parent 3b5118b commit e03b8a8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
20 changes: 20 additions & 0 deletions backend/grants/migrations/0017_alter_grant_github_handle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.7 on 2024-01-03 10:35

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("grants", "0016_delete_grantrecap"),
]

operations = [
migrations.AlterField(
model_name="grant",
name="github_handle",
field=models.CharField(
blank=True, default="", max_length=39, verbose_name="GitHub handle"
),
preserve_default=False,
),
]
4 changes: 1 addition & 3 deletions backend/grants/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ class ApprovedType(models.TextChoices):
notes = models.TextField(_("Notes"), blank=True)
website = models.URLField(_("Website"), max_length=2048, blank=True)
twitter_handle = models.CharField(_("Twitter handle"), max_length=15, blank=True)
github_handle = models.CharField(
_("GitHub handle"), blank=True, null=True, max_length=39
)
github_handle = models.CharField(_("GitHub handle"), blank=True, max_length=39)
linkedin_url = models.URLField(_("LinkedIn url"), max_length=2048, blank=True)
mastodon_handle = models.CharField(
_("Mastodon handle"), max_length=2048, blank=True
Expand Down

1 comment on commit e03b8a8

@vercel
Copy link

@vercel vercel bot commented on e03b8a8 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.