Jeremy Stretch
dfffd1ea94
Restore id__in filters to retain backward compatability until v2.7
2019-05-08 21:08:35 -04:00
Jeremy Stretch
3d616baf75
Remove NumericInFilter and id__in filters
2019-05-07 13:07:18 -04:00
Jeremy Stretch
6cb5173e27
Update query filters to OR multiple values
2019-05-07 12:25:33 -04:00
Jeremy Stretch
244c07e5f7
Closes #3085 : Catch all exceptions during export template rendering
2019-05-02 15:36:51 -04:00
Jeremy Stretch
346b00e215
Merge branch 'develop' into develop-2.6
2019-05-01 11:53:44 -04:00
Jeremy Stretch
5a8ba159f2
Fixes #3127 : Fix natural ordering of device components
2019-04-30 13:25:37 -04:00
Lars Weiler
2a2026a2cc
Forgot the additional brackets for a tuple
2019-04-30 17:04:21 +02:00
Lars Weiler
560c8d6f01
More elegant path checking
2019-04-30 16:54:23 +02:00
Lars Weiler
4c5603e6ff
Fix PEP 8 errors
2019-04-30 16:47:38 +02:00
Lars Weiler
99f0e7b939
Exclude /metrics from LOGIN_REQUIRED
2019-04-30 16:09:10 +02:00
Jeremy Stretch
c2d0e8fd95
Cleanup from earlier work on caching
2019-04-22 14:49:31 -04:00
Jeremy Stretch
e4c06700bb
Closes #3094 : Remove NullsFirstQuerySet
2019-04-19 20:59:07 -04:00
Jeremy Stretch
f4bbdf30e8
Implement get_subquery() for annotation of child object counts; Rename dcim.Site 'count_*' fields
2019-04-19 16:09:22 -04:00
John Anderson
16b4ffa3fa
Merge pull request #3080 from digitalocean/2647-cacheops
...
change cacheing to use cacheops
2019-04-19 01:41:59 -04:00
Jeremy Stretch
cd3924520d
Clean up limit_to for ForeignKeys referencing ContentType
2019-04-17 13:36:05 -04:00
John Anderson
2580b026fe
change cacheing to use cacheops
2019-04-17 12:29:21 -04:00
Jeremy Stretch
fd4c5031c7
Add test for dict_to_filter_params
2019-04-17 11:19:59 -04:00
Jeremy Stretch
a108807534
Add tests for WritableNestedSerializer
2019-04-17 10:54:50 -04:00
Jeremy Stretch
de7207de55
Enable dictionary specification of related objects in API
2019-04-16 18:02:52 -04:00
Jeremy Stretch
bf2f314cd4
Remove run_validators() override (fixed upstream)
2019-04-16 15:35:15 -04:00
John Anderson
4723ddb5ce
move caching to views
2019-04-15 14:41:04 -04:00
John Anderson
cdff29c7d5
add redis to travis builds
2019-04-15 04:16:22 -04:00
John Anderson
f0505477b8
intial work on #2647 - caching
2019-04-15 03:55:33 -04:00
Jeremy Stretch
df0686a1bd
Implement custom auth backend and EXEMPT_VIEW_PERMISSIONS setting
2019-04-11 22:01:26 -04:00
Jeremy Stretch
e710ccb0e6
Enforce view permissions for UI views
2019-04-11 17:27:38 -04:00
Jeremy Stretch
c8cccc30d1
Merge branch 'develop' into develop-2.6
2019-04-02 13:12:34 -04:00
Jeremy Stretch
d23ca041cf
Ensure fallback to default serializer when attempting to load nested serializer
2019-04-02 11:17:14 -04:00
Jeremy Stretch
fc76c8eb0f
FieldChoicesViewSet should infer field choices from serializer, not model
2019-03-22 16:24:53 -04:00
Jeremy Stretch
0b95016e00
Merge branch 'develop' into develop-2.6
2019-03-11 21:01:18 -04:00
Jeremy Stretch
7e70bfaacc
Fixes #2985 : Fix pagination page length for rack elevations
2019-03-11 12:51:03 -04:00
Jeremy Stretch
1995091169
Changelog & renaming for #2065
2019-03-07 13:58:34 -05:00
Jeremy Stretch
ef089d3722
Merge pull request #2957 from axnsan12/ref-name
...
Resolve drf-yasg `ref_name` conflicts
2019-03-07 13:52:29 -05:00
Jeremy Stretch
ab02f26a0e
Fixes #2972 : Improve ContentTypeField serializer to elegantly handle invalid data
2019-03-06 12:42:47 -05:00
Jeremy Stretch
c52d077f92
Merge branch 'develop' into develop-2.6
2019-03-05 13:39:00 -05:00
Cristi Vîjdea
3a62e9a322
Resolve drf-yasg ref_name conflicts
...
This solves the problem of distinct serializers being confused because they have the same class name (e.g. `InterfaceSerializer`)
Fixes #2065 .
2019-03-04 03:49:26 +02:00
dansheps
f2471aedb2
Fixes #2781 : Fixes filter by regions on site and device list
2019-02-27 11:41:12 -06:00
John Anderson
fc2bb724fa
initial pass on migrating to custom tag model with color and comments fields
2019-02-20 03:52:47 -05:00
Jeremy Stretch
7a0ab3aa15
Fixes #2895 : Fix filtering of nullable character fields
2019-02-14 09:43:56 -05:00
Jeremy Stretch
fdbef8ee71
Closes #2836 : Deprecate NullableCharField
2019-02-14 09:39:04 -05:00
John Anderson
613e8f05c2
fixes #2835 - certain model filters did not support the q query param
2019-01-31 13:36:30 -05:00
Jeremy Stretch
dc70fdbe03
Force string formatting of integer values
2019-01-29 13:57:19 -05:00
Jeremy Stretch
14695037da
Strip return characters when removing line breaks
2019-01-18 09:24:32 -05:00
John Anderson
17d6584ef4
removed deprecated code
2019-01-10 21:23:22 -05:00
John Anderson
ad4fb3ce8b
IPAM Select2 forms and changelog
2019-01-10 21:19:13 -05:00
John Anderson
6dcd48fef1
Virtulization Select2 forms
2019-01-10 17:32:23 -05:00
John Anderson
bf8d57c7d1
DCIM filter forms select2
2019-01-08 15:35:34 -08:00
John Anderson
6d5d9c8af3
implemented #2590 - improved color picker with actual colors
2019-01-05 17:43:42 -05:00
John Anderson
c27cea981c
select2 for all create/edit forms in dcim
2019-01-04 14:41:36 -05:00
John Anderson
fca97f9768
Merge branch 'develop' of github.com:digitalocean/netbox into select2-ui
2019-01-04 12:44:41 -05:00
John Anderson
7a5a73ce34
fixed whitespace
2019-01-04 12:44:31 -05:00
John Anderson
81a0889568
initial static select2 fields
2019-01-03 23:02:05 -05:00
Jeremy Stretch
0a820d9c98
Closes #1871 : Enable filtering sites by parent region
2019-01-03 16:59:49 -05:00
Jeremy Stretch
6ca045e1a9
Merge pull request #2694 from DanSheps/2693-fiber-cable-colors
...
Closes #2693 - Adds additional colors for cables & roles
2019-01-03 15:24:36 -05:00
John Anderson
5285b6926f
updated filter-for attr handling
2019-01-03 03:00:27 -05:00
John Anderson
28a02e9943
initial select2 support
2018-12-30 02:35:18 -05:00
Jeremy Stretch
853b1fad15
Fixes #2712 : Preserve list filtering after editing objects in bulk
2018-12-20 15:33:53 -05:00
Jeremy Stretch
f4a22e5af3
Introduced fgcolor template filter to render ideal foreground color for any background color
2018-12-19 12:17:40 -05:00
Jeremy Stretch
aca57ec281
Fixes #2698 : Remove pagination restriction on bulk component creation for devices/VMs
2018-12-19 10:59:12 -05:00
dansheps
f499f2dd66
Closes #2693
2018-12-14 11:51:20 -06:00
Jeremy Stretch
8364e56e86
Fixes #2676 : Fix exception when passing dictionary value to a ChoiceField
2018-12-11 17:00:20 -05:00
Jeremy Stretch
65edffea63
Merge v2.5 work
2018-12-07 10:51:28 -05:00
Jeremy Stretch
2a07e8f3f0
Move queryset_to_csv() utility into ObjectListView to allow overriding by individual views
2018-12-05 16:35:59 -05:00
Jeremy Stretch
686a65880e
Closes #2495 : Enable deep-merging of config context data
2018-12-05 14:34:49 -05:00
Jeremy Stretch
08b4b24296
Fixes #2622 : Enable filtering cables by multiple types/colors
2018-11-28 14:22:55 -05:00
Tatsushi Demachi
c3cdf8e97e
Fix type mismatches in API view ( #2429 )
...
* Fix tags field to be shown as array in API view
`tags` field in serializers is defineded as `TagListSerializerField`.
It should be shown as an array value in API view but actually, it is a
simple string value.
This fixes it by introducing a new `FieldInspector` to handle
`TagListSerializerField` type field as an array. It doesn't affects any
other type fields.
* Fix SerializedPKRelatedField type API expression
A field definded as `SerializedPKRelatedField` should be shown as an
array of child serializer objects in a response value definition in API
view but it is shown as an array of primary key values (usually
`integer` type) of a child serializer.
This fixes it by introducing a new `FieldInspector` to handle the field.
It doesn't affect any other type fields.
* Fix request parameter representation in API view
In API view, representation of a parameter defined as a sub class of
`WritableNestedSerializer` should be vary between a request and a
response. For example, `tenant` field in `IPAddressSerializer` should be
shown like following as a request body:
```
tenant: integer ...
```
while it should be shown like following as a response body:
```
tenant: {
id: integer ...,
url: string ...,
name: string ...,
slug: string ...
}
```
But in both cases, it is shown as a response body type expression. This
causes an error at sending an API request with that type value.
It is only an API view issue, API can handle a request if a request
parameter is structured as an expected request body by ignoring the
wrong expression.
This fixes the issue by replacing an implicitly used default auto schema
generator class by its sub class and returning a pseudo serializer with
'Writable' prefix at generating a request body. The reason to introduce
a new generator class is that there is no other point which can
distinguish a request and a response. It is not enough to distinguish
POST, PUT, PATCH methods from GET because former cases may return a JSON
object as a response but it is also represented as same as a request
body, causes another mismatch.
This also fixes `SerializedPKRelatedField` type field representation. It
should be shown as an array of primary keys in a request body.
Fixed #2400
2018-11-27 16:14:45 -05:00
Jeremy Stretch
bd7aee7c1f
Closes #2614 : Simplify calls of super() for Python 3
2018-11-27 10:52:24 -05:00
Jeremy Stretch
7d8ae5e763
Fixes #2609 : Fixed exception when ChoiceField integer value is passed as a string
2018-11-26 14:05:57 -05:00
Jeremy Stretch
2bae50f501
Enforce consistent ordering of value/label keys for ChoiceField
2018-11-26 14:02:38 -05:00
John Anderson
fd9b2f2fda
cleanup component filters and UI filter forms for device and device type - #2583
2018-11-15 00:42:01 -05:00
John Anderson
3c0181ef35
added logic to append &type=physical to interface API query for cable creation - #2585
2018-11-14 23:35:15 -05:00
Jeremy Stretch
63bd48003e
Clean up cable termination types
2018-11-14 12:17:18 -05:00
Jeremy Stretch
bc8dbfde7c
Merge branch 'develop' into develop-2.5
2018-11-12 16:03:52 -05:00
Jeremy Stretch
0c33af2140
Fixes #2558 : Filter on all tags when multiple are passed
2018-11-12 15:48:58 -05:00
Jeremy Stretch
bb5432de7d
PEP8 fix
2018-11-08 11:13:03 -05:00
Jeremy Stretch
338ce737c8
Removed deprecated expand_numeric_pattern()
2018-11-06 15:39:38 -05:00
Jeremy Stretch
f41f141130
Removed unused class NullableModelMultipleChoiceField
2018-11-06 15:32:59 -05:00
Jeremy Stretch
9f0169286b
Standardize usage of NaturalOrderingManager
2018-11-06 14:05:23 -05:00
Jeremy Stretch
045856c9ac
Introduced a placeholder template filter
2018-11-05 13:00:46 -05:00
Juho Juopperi
319869c22e
Update django is_safe_url calls to new API ( #2546 )
2018-11-05 08:52:00 -05:00
Jeremy Stretch
f8a961b568
Cleaned up import statements
2018-11-02 15:20:08 -04:00
Jeremy Stretch
521a989d23
Removed Python2 hack
2018-11-02 14:59:48 -04:00
Jeremy Stretch
b05171b126
Upgraded django-tables2 to v2.0.2
2018-11-02 14:27:17 -04:00
Jeremy Stretch
bb5c0989f3
Fixed compatability with Django REST Framework v3.9.0
2018-11-02 13:16:44 -04:00
Jeremy Stretch
ad03a0925b
Fixed cable type filtering
2018-11-01 10:18:37 -04:00
Jeremy Stretch
5e7fccb64e
Add blank choice to ColorSelect widget
2018-11-01 10:14:47 -04:00
Jeremy Stretch
849db8fe44
Finished CableCSVForm
2018-11-01 09:59:53 -04:00
Jeremy Stretch
33cdecbc52
Remove errant print() statement
2018-10-26 14:06:27 -04:00
Jeremy Stretch
83dec3b587
Fixed color display
2018-10-26 13:14:12 -04:00
Jeremy Stretch
3518d023dc
Implemented Cable API endpoint
2018-10-26 12:25:11 -04:00
Jeremy Stretch
6bea8cc546
Added length and length_unit fields to Cable
2018-10-26 10:28:25 -04:00
Jeremy Stretch
35f80f5085
First stab at cable path tracing and automatic endpoint connections
2018-10-24 16:17:01 -04:00
Jeremy Stretch
471bddea09
WIP: Initial work on the cable connection form
2018-10-22 16:58:24 -04:00
Jeremy Stretch
a36b120c8b
Merge branch 'develop-2.5' into 20-physical-cabling
2018-10-19 13:34:21 -04:00
Jeremy Stretch
22ed4f1b53
Merge release v2.4.6
2018-10-10 09:36:51 -04:00
Jeremy Stretch
4c37628784
Fixes #2393 : Fix Unicode support for CSV import under Python 2
2018-10-05 15:33:29 -04:00
Jeremy Stretch
bf47e7cae3
#2487 : Require the 'brief' parameter to evaluate True
2018-10-04 14:50:57 -04:00
Jeremy Stretch
db2721c581
Enable brief API output utilizing nested serializers
2018-10-04 13:43:50 -04:00
Jeremy Stretch
3eddeeadc5
Initial work on #20 - patch panels
2018-10-03 14:04:16 -04:00
Jeremy Stretch
364bbdeab8
Merged release v2.4.5
2018-10-03 11:23:21 -04:00
Jeremy Stretch
15babeb584
Fixes #2414 : Tags field missing from device/VM component creation forms
2018-09-28 16:26:08 -04:00