django.Model Skeleton (model) 330 B

12345678910111213
  1. # -*- mode: snippet -*-
  2. # This was cloned from a TextMate bundle for yasnippet.
  3. #name : Model Skeleton (model)
  4. #group: django
  5. #key : model
  6. #condition: (when (boundp 'python-django-project-root) python-django-project-root)
  7. # --
  8. class ${1:Modelname}(models.Model):
  9. ${2:"""${3:docstring}"""}
  10. $0
  11. def __unicode__(self):
  12. return $4