~mhall119/readfeeder/trunk

« back to all changes in this revision

Viewing changes to readfeeder/accounts/models.py

  • Committer: mhall119
  • Date: 2013-03-19 14:33:07 UTC
  • Revision ID: mhall119@ubuntu.com-20130319143307-9bnd6qcjzo1kx8ys
Truncate feed titles to fit DB field

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    )
79
79
    # Set the user_feed title if we're creating it
80
80
    if title is not None and user_feed.title != title:
81
 
        user_feed.title = title
 
81
        user_feed.title = title[:128]
82
82
        user_feed.save()
83
83
    
84
84
    # Update the feed articles if we're creating it