Tuesday, June 10, 2014

Upload Form

from django import forms
from example.main_app.models import Category
from example.images_app.models import Image
from django.contrib.auth.models import User

class UploadImageForm(forms.Form):
    image_file = forms.ImageField(
        label='Select an image',
        help_text='max. 42 megabytes'
    )

No comments:

Post a Comment