Permalink
Browse files

Allow empty description on NewsItems ... now with default.

  • Loading branch information...
1 parent 5c4b8ef commit 08104bd4660ff595b1e11872786e6b9ebcbed1cc @slinkp slinkp committed Apr 11, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 docs/changes/release_notes.rst
  2. +1 −1 ebpub/ebpub/db/models.py
View
3 docs/changes/release_notes.rst
@@ -87,6 +87,9 @@ Backward Incompatibilities
New Features in 1.2
-------------------
+* ``NewsItem`` now allows saving with an empty ``description.``;
+ some things might really only have a title available.
+
* Support multiple types of Yahoo maps, due to olwidget upgrade.
* ebpub.geocoder.base.full_geocode() now has a convert_to_block
View
2 ebpub/ebpub/db/models.py
@@ -1273,7 +1273,7 @@ class NewsItem(models.Model):
title = models.CharField(max_length=255, help_text=u'the "headline"')
description = models.TextField(blank=True, default=u'')
url = models.TextField(
- blank=True,
+ blank=True, default=u'',
help_text="link to original source for this news")
pub_date = models.DateTimeField(
db_index=True,

0 comments on commit 08104bd

Please sign in to comment.