django.ImageField (image) 328 B

12345678
  1. # -*- mode: snippet -*-
  2. # This was cloned from a TextMate bundle for yasnippet.
  3. #name : ImageField (image)
  4. #group: django
  5. #key : image
  6. #condition: (when (boundp 'python-django-project-root) python-django-project-root)
  7. # --
  8. ${1:FIELDNAME} = models.ImageField(upload_to="${2:/dir/path}"${3:, height_field=$4}${5:, width_field=$6})