Piper Merriam
fc9be55d43
Alter CSRF exemption implementation
...
The previous implementation of decorating `APIView.dispach` with the
`csrf_exempt` decorator allowed for an easy-to-make mistake where
someone could override the `dispatch` method on a view and inadvertantly
remove the csrf exemption of their api view.
By moving the decoration of the view into the `as_view` logic, it
becomes much more difficult to make this mistake.
2014-09-03 09:50:31 -06:00
Tom Christie
f08afe162c
Version 2.4.2
2014-09-03 16:35:17 +01:00
Tom Christie
c1036c1753
More test passing
2014-09-03 16:34:09 +01:00
Tom Christie
560f428e24
Merge pull request #1826 from swistakm/fix/explicit-many-in-pagination-serializer-results
...
Use explicit `many=True` in PaginationSerializer on `object_serializer` instantiation
2014-09-03 16:33:42 +01:00
Michał Jaworski
afe9b37f60
remove rogue print
2014-09-03 17:21:56 +02:00
Michał Jaworski
9195ccb97f
Use explicit many=True for object_serializer instantiation in PaginationSerializer and add catch dummy 'many' kwarg on DefaultObjectSerializer
2014-09-03 16:52:41 +02:00
Michał Jaworski
deb19272b7
Add custom pagination test that covers case with custom object serializer class
2014-09-03 16:49:32 +02:00
Carlton Gibson
4947303f20
Moved li tags inside optional_login
...
as per https://github.com/tomchristie/django-rest-framework/pull/1820#discussion_r16987993
2014-09-03 09:54:36 +02:00
Tom Christie
f2852811f9
Getting tests passing
2014-09-02 17:41:23 +01:00
Tom Christie
ec096a1cac
Add relations and get tests running
2014-09-02 15:07:56 +01:00
Carlton Gibson
1e491c82e6
Fix imports
2014-09-02 15:29:21 +02:00
Carlton Gibson
4836afa89f
Fix docstring
2014-09-02 15:11:23 +02:00
Carlton Gibson
1967f525aa
Merge branch 'master' of github.com:tomchristie/django-rest-framework into login-dropdown
2014-09-02 14:54:15 +02:00
Carlton Gibson
fa0ef17737
Remove Login Dropdown when Auth Views are not registered.
...
Fixes #1738
2014-09-02 14:53:37 +02:00
Timo Tuominen
e437520217
Generator implementation of class mapping.
2014-09-01 17:02:48 +03:00
Timo Tuominen
582f6fdd4b
Add utility function to match classes in dictionary.
2014-09-01 15:54:33 +03:00
Timo Tuominen
ae84b8b0e8
Traverse the method resolution order when mapping serializer fields.
2014-09-01 15:03:39 +03:00
Timo Tuominen
82d4b20832
Add subclass matching to serializer field mapping.
2014-09-01 15:02:49 +03:00
Tom Christie
b40525d8e6
Merge pull request #1817 from tituomin/testing-requirements-documentation
...
Correct testing documentation details.
2014-09-01 12:23:02 +01:00
Timo Tuominen
278df84a7c
Correct testing documentation details.
2014-09-01 12:14:26 +03:00
Carlton Gibson
14877464f6
Merge pull request #1816 from carltongibson/regression-login-template
...
Regression for #1810 : Test login view renders
2014-09-01 10:31:07 +02:00
Carlton Gibson
0e51dab8f4
Comform to flake8
2014-09-01 10:09:46 +02:00
Tom Christie
55e779c856
Version 2.4.1
2014-09-01 09:07:55 +01:00
Carlton Gibson
1c9c5d5c32
Regression for #1810 : Test login view renders
2014-09-01 10:07:05 +02:00
Tom Christie
f777a73bc7
Merge pull request #1810 from danielroseman/restore-body-block
...
Restore body block to base template.
2014-09-01 08:54:58 +01:00
Xavier Ordoquy
bbc2749ee6
Merge pull request #1812 from linovia/bugfix/1804
...
Fix #1804
2014-08-31 03:44:10 +02:00
Xavier Ordoquy
4dd4538069
Exclude the pyc, pyo files and __pycache__ directories from packaging (thanks to Kevin Brown).
2014-08-31 03:39:34 +02:00
Daniel Roseman
b554c67d14
Restore body block to base template.
2014-08-30 13:28:12 +01:00
Tom Christie
4ac4676a40
First pass
2014-08-29 16:46:26 +01:00
Tom Christie
efaa37376c
Update README.md
2014-08-29 14:01:54 +01:00
Tom Christie
5490fc2700
Fix links in 2.4 release
2014-08-29 13:29:51 +01:00
Tom Christie
371d30aa87
Remove unused imports.
2014-08-29 12:54:52 +01:00
Tom Christie
b552b62540
get_paginate_by
no longer takes optional .queryset
2014-08-29 12:54:03 +01:00
Tom Christie
f87d32558e
Remove .link()
and .action()
decorators.
2014-08-29 12:53:45 +01:00
Tom Christie
ce7b2cded9
Remove deprecated generic views.
...
`MultipleObjectAPIView` and `SingleObjectAPIView` are no longer
required.
2014-08-29 12:48:49 +01:00
Tom Christie
72c0811576
Minor tidy up.
2014-08-29 12:48:04 +01:00
Tom Christie
b3253b4283
Remove .model
usage in tests.
...
Remove the shortcut `.model` view attribute usage from test cases.
2014-08-29 12:35:53 +01:00
Tom Christie
b8c8d10a18
Remove page_size
argument.
...
`paginate_queryset` no longer takes an optional `page_size` argument.
2014-08-29 11:38:54 +01:00
Tom Christie
e5e6329a22
Remove pk_url_field
, slug_url_field
, slug_field
.
...
Closes #1773 .
2014-08-29 11:29:26 +01:00
Jamie Matthews
baceb528cb
Fix typos in 2.4 release notes
2014-08-29 11:11:18 +01:00
Tom Christie
b3bbf41670
Remove allow_empty
2014-08-29 11:09:35 +01:00
Tom Christie
0f8fdf4e72
Remove allow_empty
.
...
Closes #1774 .
2014-08-29 10:57:24 +01:00
Tom Christie
f62c874ea9
Remove filter_backend
.
...
Closes #1775 .
2014-08-29 10:48:40 +01:00
Tom Christie
d8eb9e6d45
Docs whitespace fix.
2014-08-29 10:48:16 +01:00
Tom Christie
572107281f
Typo in 2.4 announcement name
2014-08-29 10:15:55 +01:00
Tom Christie
2a61ed8bac
2.4 Release notes
2014-08-29 10:10:17 +01:00
Tom Christie
8f4ae06b3b
Merge pull request #1784 from tomchristie/remove-model-attribute
...
Deprecate `.model` attribute on views
2014-08-29 10:03:07 +01:00
Tom Christie
bb1604674f
Minor docs update
2014-08-29 09:21:10 +01:00
Tom Christie
95093a982e
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
2014-08-29 09:20:51 +01:00
Carlton Gibson
b88046eb64
Merge pull request #1788 from cezar77/fix-1719
...
Browsable API cleanups. Fixes #1719
2014-08-29 10:05:30 +02:00