Skip to content

Commit

Permalink
Implement codedoctor suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
FreneticScribbler committed Jun 27, 2023
1 parent 2c15f5b commit 046f93b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RIGS/migrations/0050_event_forum_url.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.19 on 2023-06-27 11:25
# Generated by Django 3.2.19 on 2023-06-27 11:28

import RIGS.models
from django.db import migrations, models
Expand All @@ -14,6 +14,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='event',
name='forum_url',
field=models.URLField(blank=True, null=True, validators=[RIGS.models.validate_forum_url]),
field=models.URLField(blank=True, default='', validators=[RIGS.models.validate_forum_url]),
),
]
2 changes: 1 addition & 1 deletion RIGS/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class Event(models.Model, RevisionMixin):
auth_request_at = models.DateTimeField(null=True, blank=True)
auth_request_to = models.EmailField(blank=True, default='')

forum_url = models.URLField(null=True, blank=True, validators=[validate_forum_url])
forum_url = models.URLField(default='', blank=True, validators=[validate_forum_url])

@property
def display_id(self):
Expand Down

0 comments on commit 046f93b

Please sign in to comment.