mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 17:05:50 +01:00
Generate thumbnail and standard image on request, and use http://github.com/mirumee/django-images for generating them. Also, remove the CreatePin page as pin creation is going to be done in JavaScript. Create UploadImage view for uploading images from computer.
10 lines
167 B
Python
10 lines
167 B
Python
from django import forms
|
|
|
|
from django_images.models import Image
|
|
|
|
|
|
class ImageForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Image
|
|
fields = ('image',)
|