[extensions-web] extensions: Don't require a URL field
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensions: Don't require a URL field
- Date: Fri, 9 Dec 2011 16:49:57 +0000 (UTC)
commit dd366eb9139302087e8bf9decb08dc273062fade
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Dec 9 11:49:48 2011 -0500
extensions: Don't require a URL field
This was causing "this field cannot be blank" errors on upload
sweettooth/extensions/models.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/models.py b/sweettooth/extensions/models.py
index a574ebf..5c0a20e 100644
--- a/sweettooth/extensions/models.py
+++ b/sweettooth/extensions/models.py
@@ -51,7 +51,7 @@ class Extension(models.Model):
slug = autoslug.AutoSlugField(populate_from="name")
creator = models.ForeignKey(User, db_index=True)
description = models.TextField()
- url = models.URLField(verify_exists=False)
+ url = models.URLField(verify_exists=False, blank=True)
created = models.DateTimeField(auto_now_add=True)
class Meta:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]