Krzysztof Klimonda
26f9c76988
Don't use FACTORY_FOR when not needed
11 år sedan
Krzysztof Klimonda
7a85f1b514
Use post_generation hooks to populate models with some data
Factory Boy provides us with a better way of populating complicated
fields (like M2M relations) than overriding _prepare class method,
so we should be using them.
11 år sedan
Krzysztof Klimonda
ef818b7f82
Rewrite tests to use a Model mocker library
There has been issues when running a full test suite (for pinry and
the entire Django stack), and test fixtures are hard to maintain anyway,
so rewrite tests to use a Model mocker library (Factory Boy) to populate
database.
11 år sedan
Isaac Bythewood
0f9b1639ad
Improve the loading of pins and overall speed
11 år sedan
Isaac Bythewood
339ea08c3a
Improve the look of the uploader
11 år sedan
Krzysztof Klimonda
856d2d1e87
Allow filtering pins over submitter.username
11 år sedan
Isaac Bythewood
c7e1e1cd83
Move location of users middleware
11 år sedan
Isaac Bythewood
9a6d540a86
Bug fix submitter filter
11 år sedan
Isaac Bythewood
248bd25a04
Move private to users, add user filtering to JS
11 år sedan
Isaac Bythewood
3420608730
CSS refactors to improve readability
11 år sedan
Isaac Bythewood
32b5eafe67
Fix template locations to match app name
11 år sedan
Krzysztof Klimonda
cae9fa96be
Write some more tests for all code
11 år sedan
Krzysztof Klimonda
97732c4f45
Use the correct reverse argument
11 år sedan
Krzysztof Klimonda
fbfd7e0239
CreateImage.get should always return HttpResponse
11 år sedan
Krzysztof Klimonda
d4fc7e1781
Write unit tests for CombinedAuthBackend
11 år sedan
Krzysztof Klimonda
e5bd3d577d
Clean-up PinResource.build_filters method
11 år sedan
Krzysztof Klimonda
03e05906f8
Reorganize core package tests into modules
11 år sedan
Krzysztof Klimonda
5b777b7e14
Move the Authentication backend to the users package
11 år sedan
Krzysztof Klimonda
d0d68545ca
Add "origin" field to the Pin model
"origin" is an optional field that stores the URI for the site
that the image has been saved from, it's going to be used only from
bookmarklet. Fixes #63
11 år sedan
Isaac Bythewood
13829866d1
Fix bug in appending jQuery if needed.
11 år sedan
Isaac Bythewood
08410ba50d
Spinner doesn't show if there are no more pins to load
11 år sedan
Isaac Bythewood
6abb1ffe88
Allow pin deleting from interface
11 år sedan
Krzysztof Klimonda
8c3599911e
In PinResource.save_m2m do nothing when no tags
11 år sedan
Isaac Bythewood
39aa6818f2
Tags sends [] instead of null
11 år sedan
Krzysztof Klimonda
6e78ce12ea
post-refactor test fixture update
11 år sedan
Isaac Bythewood
eba04c177e
Update pinry tag handler and spinner
11 år sedan
Krzysztof Klimonda
83f14445bf
Fix reverse urls namespacing issue
11 år sedan
Krzysztof Klimonda
995b69168b
use old paths for pin urls
11 år sedan
Isaac Bythewood
ec27f1cfb8
Bug fixes to bookmarklet and pin-form
11 år sedan
Krzysztof Klimonda
6e41296d57
Move test fixtures to the correct location
11 år sedan
Krzysztof Klimonda
559f054985
Write more tests for the ImageResource
11 år sedan
Krzysztof Klimonda
53f05dbb6d
A general project refactor
Removed pins django app, and moved code to the core. Moved user related
code out of core to the users app.
11 år sedan
Krzysztof Klimonda
cf86da266a
Add a very simplistic Pin access control for the API
As pointed in issue #75 we should get away with just checking if the pin
submitter is the currently logged in user. Assuming that we can implement
authorization for updating and deleting pins rather easily by subclassing
DjangoAuthorization so it passes the object to the Authorization backend.
11 år sedan
Krzysztof Klimonda
a0e11a949e
Add a small (125x125px) square thumbnail
This is going to be used by a "similar images" feature #74
11 år sedan
Krzysztof Klimonda
e70d9079ec
Login newly registered user
Rewritten register view using CBV approach, and added a authenticate/login
call after form has been validated and user created. Fixes #65
11 år sedan
Krzysztof Klimonda
68e01b5a39
Rename upload-pin to create-image
It didn't make sense to call it upload-pin as it is being used only for
creating the Image object.
11 år sedan
Krzysztof Klimonda
435c41e450
Don't raise error 500 on accessing /pins/upload-pin uri
Fixes #81
11 år sedan
Krzysztof Klimonda
57aefc7d97
Mock out Files using the commited screenshot.png file for tests
11 år sedan
Isaac Bythewood
0b58d8349e
Working pin uploader with drag and drop functionality.
11 år sedan
Isaac Bythewood
7fe3769248
Improved pin form to use post's incoming data on successful submission to auto-prepend to the list
11 år sedan
Isaac Bythewood
7ee8fd6d98
Greatly improved bookmarklet pinning functionality, much better pin form
11 år sedan
Isaac Bythewood
96af25f5fb
Further improve lightbox by getting rid of all the data tags and use ajax call for pin
11 år sedan
Isaac Bythewood
258b5ecabf
Using Django on pypi since 1.5 has been released
11 år sedan
Isaac Bythewood
29665a41a5
Reduce the top margin on lightbox
11 år sedan
Isaac Bythewood
8ec96a07ce
Greatly improved lightbox view, much cleaner and smoother
11 år sedan
Isaac Bythewood
e0362a0298
Cleaning up and improveing the bookmarklet
11 år sedan
Isaac Bythewood
fa7e8c3b83
Get basic working bookmarklet and refactor API into core
11 år sedan
Krzysztof Klimonda
af8c0865e0
Define LOGIN_URL in project settings
11 år sedan
Krzysztof Klimonda
d2727aa12c
Use django-braces for CBV Mixins like LoginRequiredMixin
11 år sedan
Krzysztof Klimonda
974d2a8720
In the API, return Pin resource upon creation
Fixes #68
11 år sedan