Commit Graph

18 Commits

Author SHA1 Message Date
Krzysztof Klimonda
d0a71244b5 Another major Pinry model rewrite
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.
2013-02-25 04:08:35 +01:00
Krzysztof Klimonda
b349c0e3ff Move custom ModelManagers to the managers.py module 2013-02-24 15:58:11 +01:00
Krzysztof Klimonda
e2a38f8a10 Add image dimensions to the API and the third image size
There has been some refactoring going on in the pinry.pins.models module.
The upload_to code has been refactored into its own function, images
have been moved to their own models - otherwise the number of fields
in the Pin model would skyrocket. Also ModelManagers have been written
to move image fetching and generating outside of models.
2013-02-23 21:12:11 +01:00
Krzysztof Klimonda
7420e8eea1 Use the proxy model for Pin.submitter so Tastypie uses a correct model for its FKs
Tastypie's ModelResource makes use of the underlying Model class to figure out its fields. It obviously
breaks when there is inconsistency with models, which is rather rare, but possible to accomplish (which I've
proven with the previous commit).
2013-02-22 01:53:18 +01:00
Isaac Bythewood
ed4f308144 Fix bug in Palette mode not being supported in JPEG to convert to RGB before JPEG save. 2012-11-01 03:35:57 +00:00
Isaac Bythewood
230a6e959f Taggit implemented. 2012-09-28 04:42:13 +00:00
Isaac Bythewood
927fb66479 Fix image resizing. 2012-08-02 01:09:16 +00:00
Isaac Bythewood
6f6bed401a Fix thumbnails. 2012-08-02 00:45:00 +00:00
Isaac Bythewood
de45705e62 Cleaning up code. 2012-07-25 02:28:01 +00:00
Isaac Bythewood
a178144da4 Removing the dependency of django-thumbs. 2012-07-25 01:50:28 +00:00
Isaac Bythewood
93f9d23470 Fix CSRF bug. 2012-07-24 23:26:38 +00:00
Isaac Bythewood
8290cc4280 Added a published field to record the date and time of an items creation. 2012-07-12 22:49:19 +00:00
Isaac Bythewood
7514c6f0d9 Added an upload field for new images instead of just requiring a URL. 2012-07-03 02:24:34 +00:00
Isaac Bythewood
6e9a423c63 Fixing one of the last batchse of pep8 and pylint bugs. 2012-05-12 00:31:54 +00:00
Isaac Bythewood
8e8bcdfb49 Lots of pylint and pep8 fixes in nearly every file. 2012-05-12 00:27:02 +00:00
Isaac Bythewood
10ffd90760 Now using tastypie for all our API needs. 2012-05-11 02:08:46 +00:00
Isaac Bythewood
1871de7f4e Remove tags and title, add description, improve forms, add register form, increase original pin limit from 20 to 50. 2012-04-26 15:38:21 +00:00
Isaac Bythewood
644184d0ad Initial commit. 2012-04-26 03:44:16 +00:00