Minor PEP8 improvements.

Updated version to 1.4.1.
Updated README.
This commit is contained in:
Brandon Taylor
2013-03-15 07:31:14 -04:00
parent 893759f7d0
commit ece9876a47
4 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -64,12 +64,14 @@ class Note(Sortable):
#a generic bound model
class GenericNote(SimpleModel, Sortable):
content_type = models.ForeignKey(ContentType, verbose_name=u"Content type", related_name="generic_notes")
content_type = models.ForeignKey(ContentType,
verbose_name=u"Content type", related_name="generic_notes")
object_id = models.PositiveIntegerField(u"Content id")
content_object = generic.GenericForeignKey(ct_field='content_type', fk_field='object_id')
content_object = generic.GenericForeignKey(ct_field='content_type',
fk_field='object_id')
class Meta(Sortable.Meta):
pass
def __unicode__(self):
return u"%s : %s" % (self.title, self.content_object)
return u'{0} : {1}'.format(self.title, self.content_object)