Commits

Anonymous committed 0088432

Fixed typo

Comments (0)

Files changed (1)

Python Django.tmbundle/Snippets/Model Skeleton (model).tmSnippet

     $0
 
     class Meta:
-        ordering = [${4:'self.id'}]
+        ordering = [${4:'id'}]
 
     def __unicode__(self):
         return ${5:u"$1"}
 
     ${6:@models.permalink
     def _get_absolute_url(self):
-        return ('${7:$1}', [${8:self.id}])}
+        return ('${7:$1}', [${8:str(self.id)}])}
 </string>
 	<key>name</key>
 	<string>Model Skeleton</string>