django-admin2/example/files/admin2.py
yarbelk 690401d604 Fix missing enctype="multipart/form-data" when needed
- add app example.files with tests, based on example2.
- add check in base update template which checks if
  form.is_multitype and adds the encoding for it
- update gitignore to ignore the uploaded media folder
- add test to blog to ensure that the create form is not
  multipart encoded
2013-09-11 22:20:38 +08:00

10 lines
246 B
Python

# -*- coding: utf-8 -*-
from __future__ import division, absolute_import, unicode_literals
import djadmin2
from .models import CaptionedFile, UncaptionedFile
djadmin2.default.register(CaptionedFile)
djadmin2.default.register(UncaptionedFile)