Kevin Massey
7cd3933144
Fixes #3804 , avoiding update of Meta.extra_kwargs
...
Added unit test to cover.
2016-01-06 15:04:51 -05:00
Tom Christie
37f7b76f72
Merge pull request #3785 from sheppard/authtoken-import
...
don't import authtoken model until needed
2016-01-05 17:28:48 +00:00
S. Andrew Sheppard
1712c00001
update invalid token case
2016-01-05 09:42:22 -06:00
Xavier Ordoquy
dceb686700
Merge pull request #3774 from tomchristie/decimalfield_validators
...
Min/MaxValueValidator is no longer transferred from a model's DecimalField
2016-01-04 16:36:44 +01:00
Kevin Brown
a772326112
Merged two DecimalValidator tests together
...
These two tests were previously added in
7d79cf35b7
but we have now discovered that there are not actually two separate
cases, there was just a bug in the code that made it look that way.
This also removes a redundant check to see if `DecimalValidator` was
defined.
2016-01-04 10:22:17 -05:00
S. Andrew Sheppard
ff29fdd875
don't import authtoken model until needed
2015-12-30 15:44:19 -06:00
Kevin Brown
87605e1e39
Don't filter out the DecimalValidator if it is not supported
...
Previously, all validators set on a DecimalField in Django would be
stripped when converted to a Django REST framework field. This was
because any validator that was an instance of `DecimalValidator` would
be removed, and when `DecimalValidator` wasn't supported (so it was
`None`), all validators would be removed.
This fixes the issue by only removing the `DecimalValidator` instances
if the `DecimalValidator` is supported.
2015-12-24 14:10:48 -05:00
Robert Romano
5fc938cbd1
The Internet Engineering Task Force approved the new HTTP status code 451. Adding to status.py and docs appropriately.
2015-12-23 12:54:17 -08:00
Michael Lissner
f15026be10
Fixes #3756 , adding the name to the HTML title, if it exists.
2015-12-22 10:31:18 -08:00
Tom Christie
18cdfcd712
Merge pull request #3731 from mjparker777/master
...
Issue 3726 DateTimeField not handling empty values
2015-12-18 11:27:12 +00:00
Tom Christie
61e7f7b0cc
Merge pull request #3715 from Cheglader/settings_errors
...
Raise error when setting a removed rest_framework setting for #3644
2015-12-18 11:19:06 +00:00
mjparker777
d9c360845d
changed datefield to match code layout of datetime and time changes
2015-12-17 12:21:44 -07:00
mjparker777
f3d5e1482b
Merge remote-tracking branch 'upstream/master'
2015-12-17 12:20:47 -07:00
Luis San Pablo
c389aeb051
Lint import ordring
2015-12-16 18:46:23 -06:00
Luis San Pablo
62e2a9706f
Fixed import order settings
2015-12-16 18:37:50 -06:00
Luis San Pablo
dab6bf4b1a
Changed error to warning message
2015-12-16 18:35:02 -06:00
Tom Linford
c78980771d
AutoFilterSet should subclass from self.default_filter_set
2015-12-16 15:36:07 -08:00
Dan Lipsitt
fb94be18be
docstring typo fix: DateAndFiles -> DataAndFiles
2015-12-16 10:42:10 -08:00
Xavier Ordoquy
ef8bde2d42
Bump version to 3.3.2
2015-12-14 07:33:17 +01:00
Xavier Ordoquy
485c297a04
Translations update.
2015-12-14 07:31:38 +01:00
mjparker777
decc5fa901
Merge remote-tracking branch 'upstream/master'
2015-12-13 17:51:06 -07:00
mjparker777
fc08236ab8
updated timefield also
2015-12-13 16:09:56 -07:00
mjparker777
bf60c08010
Issue 3726 DateTimeField not handling empty values
2015-12-13 12:21:13 -07:00
Luis San Pablo
fbd89d6b7e
Moved SETTINGS_DOC
2015-12-12 02:02:53 -06:00
Xavier Ordoquy
7a5d81c0b4
Add extra args/kwargs to authtoken's views ( #3718 )
2015-12-11 07:16:04 +01:00
Raphael Merx
fcc0a70f7c
Fixed suggestion for format in test renderer
...
Rendered would suggest using format='JSON' when the right argument is
format='json'.
2015-12-10 15:19:03 -08:00
Luis San Pablo
a615e37277
Removed depreceated constant
2015-12-07 23:30:45 -06:00
Luis San Pablo
5802dc0f98
Initial, fixes #3644
2015-12-07 23:25:40 -06:00
Luis San Pablo
0f85165b69
Fixed num args for %
2015-12-07 22:36:02 -06:00
Luis San Pablo
5117dad2ca
removed setting typo
2015-12-07 22:32:23 -06:00
Luis San Pablo
13c66b9dfe
Return error
2015-12-07 21:53:33 -06:00
Luis San Pablo
d86a901aff
Removed Settings raise attribute error
2015-12-07 21:45:44 -06:00
knbk
e203967e09
Add app_name to rest_framework.urls.
...
This allows users in Django 1.9+ to include the authentication urls
without specifying the namespace, as in:
urlpatterns = [
...
url(r'^auth/', include('rest_framework.urls'))
]
2015-12-08 02:25:00 +01:00
Xavier Ordoquy
f3949e994d
Update base translation file.
2015-12-07 18:56:47 +01:00
Tom Christie
c227b8188e
Merge pull request #3705 from mcastle/patch-2
...
Admin and API browser fails for views without a filter_class
2015-12-07 10:10:24 +00:00
Marlon
c1b70538a2
Resolve #3596
...
Uses #3597 , but without using `Context`.
2015-12-05 11:10:39 -06:00
Luis San Pablo
44a3d41ce9
Implement __getnewargs__ for #3628
2015-12-03 21:12:03 +00:00
bphillips
c153bcb479
Added validation to UUIDField to properly catch invalid input types (lists, tuples, etc).
2015-12-01 14:09:10 -05:00
José Padilla
d2f90fd6af
Merge pull request #3662 from awwester/ticket_3228
...
#3228 - add confirm modal for delete
2015-12-01 10:50:34 -04:00
Adam Wester
6d1ed851b5
#3228 - add confirm modal for delete
2015-12-01 07:51:29 -05:00
Tom Christie
832d6322a7
Merge pull request #3631 from syphar/paginat
...
allow setting a custom Django Paginator class
2015-11-30 20:58:32 +00:00
Tom Christie
8dea1aeed0
Merge pull request #3677 from Ernest0x/patch-4
...
Updated NestedBoundField to also handle empty string when rendering its form
2015-11-27 13:21:58 +00:00
Tom Christie
0d0aff44ac
Merge pull request #3668 from akx/exc-hiding
...
Reveal previously hidden AttributeErrors and TypeErrors
2015-11-27 11:51:25 +00:00
Aarni Koskela
69688289ce
Ensure Django{Model,Object}Permissions
don't hide exceptions.
...
Quietly catching `AttributeError` and `TypeError` when calling
`get_queryset()` is rather insidious, as those exceptions get caught no
matter where they might happen in the call stack.
2015-11-27 12:46:30 +02:00
Petros Moisiadis
570187b959
Updated NestedBoundField to also handle empty string when rendering its form
...
If a NestedBoundField field has a value of `None` and is inside another NestedBoundField field, it will have its value converted to an empty string while the form of its enclosing field is being rendered. So, NestedBoundField fields with an empty string value must be handled the same way as NestedBoundField fields with a `None` value.
2015-11-26 17:07:57 +02:00
Aarni Koskela
47c9bb143c
Fix smart_repr()
to also clean upper-case hex addresses.
...
Windows Pythons seem to like printing addresses in upper-case, while Linux
Pythons like lower-case hexes.
This led to an amusing (for a given value of "amusing", anyway) situation
where some repr tests would fail if the objects they were testing happened
to be allocated at an address with a hex digit in the range A..F.
2015-11-26 15:48:04 +02:00
Xavier Ordoquy
d6c326623f
Make DRF compatible with multi template engine in Django 1.8
2015-11-25 07:37:01 +01:00
Steven Loria
b209fe04fc
Fix typo in docstring for ReadOnlyField
2015-11-20 13:51:21 -05:00
Andrei Fokau
2acc6a756c
Use related_objects api for Django 1.9+
2015-11-19 13:04:37 +01:00
Tom Christie
378b7b8963
Merge pull request #3655 from andreif/fix/headers-order
...
Sort response headers in api renderer
2015-11-18 17:25:54 +00:00