Commit Graph

48 Commits

Author SHA1 Message Date
winkidney
067e90fd97 Feature: Add full-board-list api 2019-12-08 12:58:50 -05:00
winkidney
dded2ac016 Feature: Add pin-add and pin-remove at backend 2019-12-08 12:58:50 -05:00
winkidney
ed09a32423 Fix: Fix submitter parse error in url 2019-12-08 12:58:50 -05:00
winkidney
e634c2d4d8 Feature: Add user-creation for UserViewSet 2019-12-08 12:58:50 -05:00
winkidney
c3b0cffea3 Feature: Allow current user to fetch its information 2019-12-08 12:58:50 -05:00
winkidney
c6c9266ec0 Feature: Add board in admin and add id in board serializer 2019-12-08 12:58:50 -05:00
winkidney
161973b337 Fix: Merge migrations file to resolve conflicts 2019-12-08 12:58:50 -05:00
winkidney
3d56663d8b Fix: Use new migration file for Board 2019-12-08 12:58:50 -05:00
winkidney
be00941281 Feature: Add board support in backend 2019-12-08 12:58:50 -05:00
Will Stott
510966633a Only load Image once when creating all three Thumbnail sizes. 2019-07-18 14:42:40 +01:00
Will Stott
cb24cebd94 Avoid 2 queries per pin in the main endpoint. 2019-07-18 14:33:18 +01:00
Will Stott
d871180cdf Use caller's Image object when fetching or creating a thumbnail. 2019-07-17 23:54:18 +01:00
Will Stott
6cb00dfc37 flake8 2019-07-17 09:58:24 -04:00
Will Stott
a6569cb8ff Use Django's standard field rendering. Create filter for custom attrs. 2019-07-17 09:58:24 -04:00
winkidney
e216e5a6f2 Feature: Use char-field instead of url-field to fit strange types of url
Now Pinry will not care type of url, if it could be input, it could be
saved.
This may cause xss issue but Pinry is a private pin-board replacement,
so be it.
2019-07-15 17:12:18 +08:00
winkidney
8f7eab9b2b Fix: Add migrations for Pin 2019-02-22 06:00:08 -08:00
winkidney
0d60075f28 flake8 2019-02-22 17:47:50 +08:00
winkidney
4fb2d8fff7 Refactor: Remove unuse import in models.py 2019-02-22 17:27:57 +08:00
winkidney
de652846b6 Doc: Add warnning to remove origin field 2019-02-22 16:46:55 +08:00
winkidney
f3f9975ca0 Fix: Fix syntax erro on python 3.4 2019-02-22 16:23:08 +08:00
winkidney
814782f5ef Fix: Use rsponse.json() to fix test-failure on json-3.5 2019-02-22 16:23:08 +08:00
winkidney
ef05e4ad8e Feature: Remove unused tests and add tests for DRF-api 2019-02-22 16:23:08 +08:00
winkidney
d9b5a78b36 Refactor: Allow only the user-data fetching 2019-02-22 16:23:08 +08:00
winkidney
a5a876b1aa Fix: Fix context name-conflicts for user-page 2019-02-22 16:23:08 +08:00
winkidney
40e2f0b254 Feature: Remove unused django-tastypie 2019-02-22 16:23:08 +08:00
winkidney
a2e63f05d7 Fix: Correct the name for specified pin 2019-02-22 16:23:08 +08:00
winkidney
00d9a854ef Feature: Use more restful url for user-filter and tag-filter 2019-02-22 16:23:08 +08:00
winkidney
e1720921fb Feature: Support filter by tags and user for Pins 2019-02-22 16:23:08 +08:00
winkidney
fbbe4d8c2e Fix: Should use image_by_id as image-field name / add pagination 2019-02-22 16:23:08 +08:00
winkidney
6f6d858f8c Fix: Should allow null-valur for some field 2019-02-22 16:23:08 +08:00
winkidney
9741f0311a Feature: Update Pin via drf-api 2019-02-22 16:23:08 +08:00
winkidney
da8bac1491 Feature: Use v2-api for pin-detail page 2019-02-22 16:23:08 +08:00
winkidney
153dc0daef Fix: Should ignore error caused by pins which reference same image 2019-02-22 16:23:08 +08:00
winkidney
274134444d Fix: Image should be both readable and writable 2019-02-22 16:23:08 +08:00
winkidney
e0a074fd9f Feature: Allow auto-creation for tags for pin / fix admin format 2019-02-22 16:23:08 +08:00
winkidney
33d9aeee48 Feature: Use new image-creation api instead of the old 2019-02-22 16:22:59 +08:00
winkidney
ec6d444759 Feature: Move viewsets to views.py 2019-02-20 18:03:27 +08:00
winkidney
32dc00fa34 Feature: Add image creation api and api-docs of DRF api 2019-02-20 17:40:19 +08:00
winkidney
220c49a725 Feature: add basic drf-api for user/pin 2019-02-20 17:05:14 +08:00
winkidney
fe1439b2a2 Fix: Fix permission check for tastypie / update to 0.14.1 2018-08-26 21:30:07 -07:00
winkidney
f85a1e7301 Fix: Upgrade django to 1.11 LTS
New version of django fix the RuntimeError while saving wepb file.

The patch will not be applied to Django 1.8

Ref: https://www.djangoproject.com/download/#supported-versions

Ref: https://github.com/django/django/pull/10331
2018-08-26 21:30:07 -07:00
winkidney
fadb898804 Fix: Add test for extra referer field 2018-08-21 08:14:17 -07:00
winkidney
5ed61913a1 Feature: Add UA and referer to fetch pictures from more sites 2018-08-21 20:08:50 +08:00
winkidney
b7135b64aa Feature: Add referer field for Pin 2018-08-21 19:52:21 +08:00
winkidney
701b4dd581 Fix: Add workaround for image object deletion after pin deleted 2018-08-18 08:49:10 -07:00
Carey Metcalfe
df4b63de23 Fix tags being serialized as stringified map objects
This commit fixes an issue where the `tags` key of pins in the API response would be serialized as the string `"<map object at 0x...>". This issue would cause a `TypeError: pins.objects[i].tags.sort is not a function` on the frontend and prevent the page from loading.
2018-04-03 09:08:50 -04:00
Isaac Bythewood
da853fad92 Updating tests for new app organization 2018-02-08 22:44:55 -05:00
Isaac Bythewood
1fcdf2a9a3 Refactor apps to be in repo folder 2018-02-08 21:57:49 -05:00