Skip to content

Commit

Permalink
Allow evidence.link to be blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
adammck committed Dec 7, 2011
1 parent c04239a commit b81e472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hunchworks/forms/evidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class EvidenceForm(forms.ModelForm):
help_text="Tags that you think would help others search for or find this Evidence",
widget=TokenWidget(prevent_duplicates=True, allow_creation=True))

link = EmbedField(
link = EmbedField(required=False,
help_text='Enter an URL to be embedded. You can find a list of supported ' +
'providers at <a href="http://embed.ly/providers">Embedly</a>.')

Expand Down
2 changes: 1 addition & 1 deletion hunchworks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class Evidence(models.Model):
description = models.TextField(verbose_name="Further explanation", blank=True)
location = models.ForeignKey('Location', null=True, blank=True)
creator = models.ForeignKey('UserProfile')
link = models.CharField(max_length=255)
link = models.CharField(max_length=255, blank=True)
upload = models.FileField(upload_to='evidence', blank=True, null=True)
tags = models.ManyToManyField('Tag', blank=True)

Expand Down

0 comments on commit b81e472

Please sign in to comment.