Created
September 20, 2012 08:15
-
-
Save allieus/3754627 to your computer and use it in GitHub Desktop.
FileInput Widget for iOS6 Safari
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Post(models.Model): | |
photo = models.ImageField(upload_to='photos/%Y/%m/%d') | |
class PostForm(forms.ModelForm): | |
class Meta: | |
model = Post | |
widgets = { | |
'photo': forms.FileInput(attrs={'multiple':'multiple', 'accept':'image/*'}), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment