Commit Graph

613 Commits

Author SHA1 Message Date
Jeremy Stretch
504e5bf9e6 Closes #2836: Deprecate NullableCharField 2019-02-14 09:39:04 -05:00
John Anderson
dc491e24ed fixes #2835 - certain model filters did not support the q query param 2019-01-31 13:36:30 -05:00
Jeremy Stretch
88233283b7 Force string formatting of integer values 2019-01-29 13:57:19 -05:00
Jeremy Stretch
b2faf98c94 Strip return characters when removing line breaks 2019-01-18 09:24:32 -05:00
John Anderson
9f361a875a removed deprecated code 2019-01-10 21:23:22 -05:00
John Anderson
abea43805f IPAM Select2 forms and changelog 2019-01-10 21:19:13 -05:00
John Anderson
62602d68c0 Virtulization Select2 forms 2019-01-10 17:32:23 -05:00
John Anderson
658faf1621 DCIM filter forms select2 2019-01-08 15:35:34 -08:00
John Anderson
687f76bc8d implemented #2590 - improved color picker with actual colors 2019-01-05 17:43:42 -05:00
John Anderson
75c9a8f7c7 select2 for all create/edit forms in dcim 2019-01-04 14:41:36 -05:00
John Anderson
2fe031557e Merge branch 'develop' of github.com:digitalocean/netbox into select2-ui 2019-01-04 12:44:41 -05:00
John Anderson
dacc16174d fixed whitespace 2019-01-04 12:44:31 -05:00
John Anderson
b1ef6aa194 initial static select2 fields 2019-01-03 23:02:05 -05:00
Jeremy Stretch
30343cfffc Closes #1871: Enable filtering sites by parent region 2019-01-03 16:59:49 -05:00
Jeremy Stretch
50bfb42af2 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
8ef5fb703a updated filter-for attr handling 2019-01-03 03:00:27 -05:00
John Anderson
6b3d1ece84 initial select2 support 2018-12-30 02:35:18 -05:00
Jeremy Stretch
68446533b3 Fixes #2712: Preserve list filtering after editing objects in bulk 2018-12-20 15:33:53 -05:00
Jeremy Stretch
3fdeec2840 Introduced fgcolor template filter to render ideal foreground color for any background color 2018-12-19 12:17:40 -05:00
Jeremy Stretch
28cd5a22ec Fixes #2698: Remove pagination restriction on bulk component creation for devices/VMs 2018-12-19 10:59:12 -05:00
dansheps
8bd97d3836 Closes #2693 2018-12-14 11:51:20 -06:00
Jeremy Stretch
512226b10c Fixes #2676: Fix exception when passing dictionary value to a ChoiceField 2018-12-11 17:00:20 -05:00
Jeremy Stretch
13edc47a4d Merge v2.5 work 2018-12-07 10:51:28 -05:00
Jeremy Stretch
6d0026b2d3 Move queryset_to_csv() utility into ObjectListView to allow overriding by individual views 2018-12-05 16:35:59 -05:00
Jeremy Stretch
8cc582b360 Closes #2495: Enable deep-merging of config context data 2018-12-05 14:34:49 -05:00
Jeremy Stretch
47ea8df446 Fixes #2622: Enable filtering cables by multiple types/colors 2018-11-28 14:22:55 -05:00
Tatsushi Demachi
51ecc03d46 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
6b1abd6a65 Closes #2614: Simplify calls of super() for Python 3 2018-11-27 10:52:24 -05:00
Jeremy Stretch
73a6583722 Fixes #2609: Fixed exception when ChoiceField integer value is passed as a string 2018-11-26 14:05:57 -05:00
Jeremy Stretch
9d8b36bf91 Enforce consistent ordering of value/label keys for ChoiceField 2018-11-26 14:02:38 -05:00
John Anderson
b1aa52305b cleanup component filters and UI filter forms for device and device type - #2583 2018-11-15 00:42:01 -05:00
John Anderson
39ff4b40ac added logic to append &type=physical to interface API query for cable creation - #2585 2018-11-14 23:35:15 -05:00
Jeremy Stretch
1945fdace1 Clean up cable termination types 2018-11-14 12:17:18 -05:00
Jeremy Stretch
6a85f38f11 Merge branch 'develop' into develop-2.5 2018-11-12 16:03:52 -05:00
Jeremy Stretch
574ddedc22 Fixes #2558: Filter on all tags when multiple are passed 2018-11-12 15:48:58 -05:00
Jeremy Stretch
f8376de43a PEP8 fix 2018-11-08 11:13:03 -05:00
Jeremy Stretch
40bafea2a5 Removed deprecated expand_numeric_pattern() 2018-11-06 15:39:38 -05:00
Jeremy Stretch
359db27213 Removed unused class NullableModelMultipleChoiceField 2018-11-06 15:32:59 -05:00
Jeremy Stretch
2c43446ccb Standardize usage of NaturalOrderingManager 2018-11-06 14:05:23 -05:00
Jeremy Stretch
8dd3f37da7 Introduced a placeholder template filter 2018-11-05 13:00:46 -05:00
Juho Juopperi
2a929fc19a Update django is_safe_url calls to new API (#2546) 2018-11-05 08:52:00 -05:00
Jeremy Stretch
f6d4ea00df Cleaned up import statements 2018-11-02 15:20:08 -04:00
Jeremy Stretch
73a3366469 Removed Python2 hack 2018-11-02 14:59:48 -04:00
Jeremy Stretch
3eb176010c Upgraded django-tables2 to v2.0.2 2018-11-02 14:27:17 -04:00
Jeremy Stretch
416187796c Fixed compatability with Django REST Framework v3.9.0 2018-11-02 13:16:44 -04:00
Jeremy Stretch
e847f830dc Fixed cable type filtering 2018-11-01 10:18:37 -04:00
Jeremy Stretch
b1e5909cb5 Add blank choice to ColorSelect widget 2018-11-01 10:14:47 -04:00
Jeremy Stretch
50dcb1404f Finished CableCSVForm 2018-11-01 09:59:53 -04:00
Jeremy Stretch
6d1840a7e4 Remove errant print() statement 2018-10-26 14:06:27 -04:00
Jeremy Stretch
aa050d85cc Fixed color display 2018-10-26 13:14:12 -04:00
Jeremy Stretch
48c5455551 Implemented Cable API endpoint 2018-10-26 12:25:11 -04:00
Jeremy Stretch
29dafdedab Added length and length_unit fields to Cable 2018-10-26 10:28:25 -04:00
Jeremy Stretch
13ae885618 First stab at cable path tracing and automatic endpoint connections 2018-10-24 16:17:01 -04:00
Jeremy Stretch
cc01f3cbd3 WIP: Initial work on the cable connection form 2018-10-22 16:58:24 -04:00
Jeremy Stretch
455fcf16eb Merge branch 'develop-2.5' into 20-physical-cabling 2018-10-19 13:34:21 -04:00
Jeremy Stretch
26ebed03d0 Merge release v2.4.6 2018-10-10 09:36:51 -04:00
Jeremy Stretch
1dd2dae9c5 Fixes #2393: Fix Unicode support for CSV import under Python 2 2018-10-05 15:33:29 -04:00
Jeremy Stretch
aa51d49d87 #2487: Require the 'brief' parameter to evaluate True 2018-10-04 14:50:57 -04:00
Jeremy Stretch
253853aac2 Enable brief API output utilizing nested serializers 2018-10-04 13:43:50 -04:00
Jeremy Stretch
bd72c26a57 Initial work on #20 - patch panels 2018-10-03 14:04:16 -04:00
Jeremy Stretch
66db32fefd Merged release v2.4.5 2018-10-03 11:23:21 -04:00
Jeremy Stretch
8311394e4c Fixes #2414: Tags field missing from device/VM component creation forms 2018-09-28 16:26:08 -04:00
Jeremy Stretch
6daac8b2ee Fixes #2470: Log the creation of device/VM components as object changes 2018-09-28 16:04:51 -04:00
Jeremy Stretch
e35bb17253 Closes #2402: Order and format JSON data in form fields 2018-09-13 11:31:34 -04:00
Jeremy Stretch
1d37a9d0e6 Merge branch 'develop' into develop-2.5 (v2.4.4 release) 2018-08-22 12:10:44 -04:00
Jeremy Stretch
ca98a0043d Fixes #2369: Corrected time zone validation on site API serializer 2018-08-20 16:53:23 -04:00
Jeremy Stretch
1302a74a36 #2359: Extended exempt attributes to 'migrate' command 2018-08-15 15:02:58 -04:00
Jeremy Stretch
91f086e9bb Closes #2359: Implement custom makemigrations command to ignore extraneous field attributes 2018-08-15 14:18:52 -04:00
Jeremy Stretch
68a5dcd47e Removed Python 2 string compatibility 2018-08-14 11:58:42 -04:00
Jeremy Stretch
1724491366 Closes #2000: Remove support for Python 2 2018-08-14 11:48:12 -04:00
Jeremy Stretch
8a8b40475c Fixes #2334: TypeError raised when WritableNestedSerializer receives a non-integer value 2018-08-08 15:09:30 -04:00
Jeremy Stretch
b3cff42105 Fixes #2319: Extend ChoiceField to properly handle true/false choice keys 2018-08-07 13:48:29 -04:00
Jeremy Stretch
02e7b7aa82 Fixes #2314: Serialized representation of object in change log does not incldue assigned tags 2018-08-07 08:52:57 -04:00
Jeremy Stretch
d46cbcff5f Refactored the tests to remove a lot of boilerplate 2018-08-03 11:39:26 -04:00
Jeremy Stretch
09f6b76cc9 Fixes #2301: Fix model validation on assignment of ManyToMany fields via API patch 2018-08-03 10:45:53 -04:00
Jeremy Stretch
e6e5b92e00 Adopt django-taggit-serializer for representation of assigned tags in the API 2018-08-03 09:43:03 -04:00
John Anderson
8c51fc86f4 Webhook signal refactor - fixes #2282 (#2260)
Refactor of webhook signaling system to use the same middleware mechanics of Changelogging
2018-07-30 14:23:49 -04:00
Jeremy Stretch
2f0e7e04c7 Misc cleanup 2018-07-30 14:00:37 -04:00
Jeremy Stretch
5c96d29fcc Misc cleanup 2018-07-30 12:49:08 -04:00
Jeremy Stretch
7809eb42d9 Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer 2018-07-30 12:41:20 -04:00
Jeremy Stretch
5b92fe79d1 Merged release v2.3.7 2018-07-27 11:43:27 -04:00
Jeremy Stretch
8010507404 ExceptionHandlingMiddleware: Use server_error view for custom templates 2018-07-23 23:12:41 -04:00
Jeremy Stretch
5fbabebda5 Fixes #2266: Permit additional logging of exceptions beyond custom middleware 2018-07-23 23:00:09 -04:00
Jeremy Stretch
0d1bb22c6c Cleaned up BulkEditView and BulkDeleteView 2018-07-20 21:18:10 -04:00
Jeremy Stretch
da08a35079 Corrected exception handling in get_serializer_for_model() 2018-07-16 13:26:26 -04:00
Jeremy Stretch
ff6e84ae0e Misc cleanup for config contexts 2018-07-10 16:16:23 -04:00
Jeremy Stretch
afe44ad948 Order tags by name only, not item count 2018-07-10 14:25:04 -04:00
Jeremy Stretch
c00181ac9f Fixed regex casting to satisfy pycodestyle 2018-07-10 14:21:40 -04:00
Jeremy Stretch
db78e2c3be Force custom field values to strings for object change serialization 2018-07-10 14:16:16 -04:00
Jeremy Stretch
5b524878fd Added missing import statement 2018-07-10 10:11:09 -04:00
Jeremy Stretch
b2cfdf04b8 Record tags when serializing an object for an ObjectChange 2018-07-10 10:10:22 -04:00
Jeremy Stretch
6da5abbede Added bulk tag addition/removal 2018-07-10 10:00:21 -04:00
Jeremy Stretch
f5fc801f3b Flip the order of tag and URL name for the tag template tag 2018-07-05 15:20:13 -04:00
Jeremy Stretch
aedebc16df Fixed object return_url resolution for bulk editing 2018-07-03 09:49:36 -04:00
Jeremy Stretch
4d92ffd153 Merge branch 'develop' into develop-2.4 2018-07-02 17:01:14 -04:00
Jeremy Stretch
9d2c4257a6 Closes #1851: Standardize usage of GetReturnURLMixin 2018-07-02 11:54:41 -04:00
Jeremy Stretch
78226ddb12 Improved rendering of boolean fields in tables 2018-06-29 12:05:56 -04:00
Jeremy Stretch
8d551eb9a5 Include custom fields in ObjectChange data 2018-06-29 10:40:57 -04:00
Jeremy Stretch
aa8ffad29c Introduced the render_json template filter 2018-06-28 10:49:52 -04:00
Anaël Beutot
992dacbb72 Fix pycodestyle errors
Mainly two kind of errors:
* pokemon exceptions
* invalid escape sequences
2018-06-27 17:24:33 +02:00
Jeremy Stretch
435732f4fd serialize_object(): Allow extra data to overwrite existing fields 2018-06-22 15:27:22 -04:00
Jeremy Stretch
e3f625cb7b Moved object serialization into a utility function 2018-06-22 14:00:23 -04:00
Jeremy Stretch
ec8143fc1b Moved ObjectChange creation logic from middleware to ChangeLoggedModel 2018-06-21 13:24:26 -04:00
Jeremy Stretch
4a46474005 Disabled the creation of new UserActions 2018-06-21 10:56:33 -04:00
Jeremy Stretch
9fb4428d14 Added API serializer for ObjectChange 2018-06-19 15:04:56 -04:00
Jeremy Stretch
a8329687da Renamed CreatedUpdatedModel to ChangeLoggedModel and applied it to all primary and organizational models 2018-06-13 15:40:16 -04:00
Jeremy Stretch
702fb0635a Fix natural ordering within object tables 2018-06-11 15:10:31 -04:00
Jeremy Stretch
c81cbf1f9a Added tests for NaturalOrderByManager 2018-06-08 15:42:10 -04:00
Jeremy Stretch
f472544300 Establish tests for the utilities app 2018-06-08 14:32:41 -04:00
Jeremy Stretch
4aa7600615 Merge branch 'develop' into develop-2.4 2018-06-07 16:23:57 -04:00
John Anderson
80a1b23f6f Implements #81 - webhook event backend (#1640)
* merge branch develop

* bugfix, signals for virtualization's class wasn't correctly defined

* updated webhooks for 2.4 and cleanup

* updated docs to cover changes to supervisor config

* review changes and further cleanup

* updated redis connection settings

* cleanup settings
2018-05-30 11:19:10 -04:00
Jeremy Stretch
f76158bc54 Tweak formatting of message to handle translation strings 2018-05-22 11:19:47 -04:00
Jeremy Stretch
0c575e88d7 Tweaked ordering of tags list 2018-05-22 10:51:40 -04:00
Jeremy Stretch
51710f87a4 Post-release version bump 2018-05-21 16:50:31 -04:00
Jeremy Stretch
deb82a62cd Added tags panel to object list view 2018-05-18 15:43:21 -04:00
Jeremy Stretch
d44214e24a Added template tag for tag links 2018-05-18 11:09:11 -04:00
Jeremy Stretch
1510e5d229 Initial work on implementing django-taggit for #132 2018-05-08 16:28:26 -04:00
Jeremy Stretch
6316a9b8bd Merge branch 'develop' into develop-2.4 2018-04-19 11:24:11 -04:00
Nicholas St. Germain
f8427fea91 stop force value split w ArrayFieldSelectMultiple 2018-04-18 14:02:40 -05:00
Jeremy Stretch
73a4594122 Fixes #2022: Show 0 for zero-value fields on CSV export 2018-04-12 12:54:21 -04:00
Jeremy Stretch
df6aefbba5 Introduced SerializedPKRelatedField to represent serialized ManyToManyFields 2018-04-06 12:42:25 -04:00
Jeremy Stretch
7a7bb63e91 Finished merging writable serializers 2018-04-05 14:12:43 -04:00
Jeremy Stretch
3e2e2bcc1c Introduced WritableNestedSerializer 2018-04-04 15:39:14 -04:00
Jeremy Stretch
4ac941b0b6 Closes #1842: Implement support for Django 2.0 2018-03-30 10:39:22 -04:00
Jeremy Stretch
342c6a9866 Merge pull request #1643 from RyanBreaker/wildcard
Implements #1586, add additional variants for ExpandableNameFields
2018-03-22 11:40:54 -04:00
Dave Cameron
b524a1d6dc The id__in field is a csv-separated string of ids
drf_yasg is interpreting it as a number because NumericInFilter inherits
from django's NumberFilter which explicitly identifies as being a
DecimalField.
2018-03-15 17:07:58 -04:00
Dave Cameron
5996a4b272 Differentiate better between boolean and 0, 1 choices 2018-03-15 17:07:58 -04:00
Dave Cameron
634b6cdfb2 Use drf_yasg to generate swagger
drf_yasg provides more complete swagger output, allowing for generation
of usable clients.

Some custom work was needed to accommodate Netbox's custom field
serializers, and to provide x-nullable attributes where appropriate.
2018-03-15 17:07:58 -04:00
Jeremy Stretch
3f8cabdb58 Closes #1866: Introduced AnnotatedMultipleChoiceField for filter forms 2018-03-07 14:16:38 -05:00
Jeremy Stretch
5d2b2efc05 Fixes #1926: Prevent reassignment of parent device when bulk editing VC member interfaces 2018-03-01 13:10:36 -05:00
Jeremy Stretch
225f66f2a8 Fixes #1934: Fixed exception when rendering export template on an object type with custom fields assigned 2018-03-01 12:37:12 -05:00
Jeremy Stretch
b9359b9965 Fixes #1935: Correct API validation of VLANs assigned to interfaces 2018-03-01 12:05:25 -05:00
Jeremy Stretch
ca9479b76d Fixes #1921: Ignore ManyToManyFields when validating a new object created via the API 2018-03-01 11:16:28 -05:00
Jeremy Stretch
7c30bdf4ff Fixes #1884: Provide additional context to identify devices when creating/editing avirtual chassis 2018-02-14 11:14:04 -05:00
Jeremy Stretch
91059bb311 Merge branch 'develop' into develop-2.3 2018-02-06 14:58:11 -05:00
Jeremy Stretch
d33c4c6088 Fixed quoting of line breaks inside a CSV field 2018-02-02 16:31:23 -05:00
Jeremy Stretch
cf3c76c975 Closes #1714: Standardized CSV export functionality for all object lists 2018-02-02 16:12:57 -05:00
Jeremy Stretch
9f07379800 Fixes #1859: Implemented support for line breaks within CSV fields 2018-02-02 13:32:16 -05:00
Jeremy Stretch
c6c165b1d0 Refactored CSV export logic 2018-02-02 11:36:45 -05:00
Jeremy Stretch
e0aac1a049 Merge branch 'develop' into develop-2.3 2018-01-31 11:13:17 -05:00
Jeremy Stretch
1a2117ec7c Fixes #1850: Fix TypeError when attempting IP address import if only unnamed devices exist 2018-01-31 10:03:05 -05:00
Jeremy Stretch
8ae884e164 Merge branch 'develop' into develop-2.3 2018-01-19 10:54:26 -05:00
Jeremy Stretch
d63c9965b4 Fixes #1765: Improved rendering of null options for model choice fields in filter forms 2017-12-26 12:08:22 -05:00
Jeremy Stretch
4508d47104 Cleaned up component tables and checkbox toggling 2017-12-21 13:29:02 -05:00
Jeremy Stretch
db66a4122c Fixes #1136: Enforce model validation during bulk update 2017-12-20 13:04:00 -05:00
Jeremy Stretch
189e1771d6 Closes #1283: Added a time zone field to the site model 2017-12-19 17:24:14 -05:00
Jeremy Stretch
64dcd4eb99 Merge pull request #1782 from digitalocean/99-virtual-chassis
Virtual Chassis Support
2017-12-18 17:09:53 -05:00
Mike Culbertson
ffc29f49eb Fix for #1778.
This will set initial values for visible bulk-add form fields from query args.
2017-12-16 12:28:37 -05:00
Jeremy Stretch
87d0f18933 Obsoleted ComponentEditView and ComponentDeleteView 2017-12-15 15:57:49 -05:00
Jeremy Stretch
deb148fdf7 Fixes #1767: Use proper template for 404 responses 2017-12-13 11:49:36 -05:00
Jeremy Stretch
e209f6819f Fixes #1727: Added missing import for M2M_FIELD_TYPES 2017-12-07 15:36:08 -05:00
Jeremy Stretch
e2d8aa9de8 Fixed up validation of Interface VLAN assignments 2017-11-14 16:15:23 -05:00
Jeremy Stretch
af68ea5dfd Merge branch '150-interface-vlans' into develop-2.3 2017-11-14 15:36:14 -05:00
Jeremy Stretch
0515adad19 Merge branch 'develop' into develop-2.3 2017-11-14 14:38:32 -05:00
Jeremy Stretch
fe68eca25c Closes #1512: Added a view to search for an IP address being assigned to an interface 2017-11-10 11:58:59 -05:00
Jeremy Stretch
55fe30fe8b Closes #1553: Introduced support for bulk object creation via the API 2017-11-07 15:36:10 -05:00
Jeremy Stretch
002848cf09 Closes #1691: Cleaned up and reorganized import statements 2017-11-07 11:08:23 -05:00
Jeremy Stretch
81cef18578 Tweaked exception-handling middleware to preserve tracebacks 2017-11-06 17:48:13 -05:00
Jeremy Stretch
a541cb38da Fixed PermissionError handling for Python 2 2017-11-06 17:24:09 -05:00
Jeremy Stretch
c83af10008 Closes #1683: Replaced default 500 handler with custom middleware to provide preliminary troubleshooting assistance 2017-11-03 13:24:31 -04:00
Ryan Breaker
64f49773ba Fix bug with numbers >10 2017-10-31 22:03:57 -05:00
Jeremy Stretch
0d0b193712 Fixes #1649: Correct fitlering on null values (e.g. ?tenant_id=0) for django-filters v1.1.0+ 2017-10-30 17:20:22 -04:00
Ryan Breaker
3c91ded4c0 E226 fix 2017-10-24 20:43:02 -05:00
Ryan Breaker
490ad293f9 Refactor pattern check 2017-10-24 20:22:15 -05:00
Ryan Breaker
a6211acca0 Update comment 2017-10-24 20:03:10 -05:00
Ryan Breaker
c2493a8112 Update help text for ExpandableNameField (again) 2017-10-24 19:59:37 -05:00
Ryan Breaker
c1aff87229 Update help text for ExpandableNameField 2017-10-24 19:55:50 -05:00
Ryan Breaker
2c9f29c20d Prevent mismatch of cases in ranges 2017-10-24 19:46:12 -05:00
Ryan Breaker
c6ff74ad42 Prevent mismatch of types in ranges 2017-10-24 19:30:43 -05:00
Ryan Breaker
122b28a6e3 Merge letters and numbers into one function 2017-10-24 17:55:00 -05:00
Ryan Breaker
1415671396 Add alphabetic variants to interface expansions 2017-10-24 00:09:38 -05:00
Jeremy Stretch
732827f689 Merge branch 'develop' into develop-2.2
Conflicts:
	netbox/utilities/api.py
2017-10-11 10:47:21 -04:00
Jeremy Stretch
445c648452 #1556: Swapped label and value 2017-10-10 17:47:53 -04:00
Jeremy Stretch
1f4deac332 Closes #1556: Added API endpoints listing static field choices for each app 2017-10-10 16:41:35 -04:00
Jeremy Stretch
d220eaed8b Moved core API classes out of utilities 2017-10-10 14:21:20 -04:00
Jeremy Stretch
ff7a3b75b7 Fixes #1567: Prompt user for session key when importing secrets 2017-10-10 13:22:40 -04:00
Jeremy Stretch
83e567c529 Fixes #1563: Made necessary updates for Django REST Framework v3.7.0 2017-10-06 15:26:56 -04:00
Jeremy Stretch
bc5302bd63 Corrected default return URL for BulkComponentCreateView 2017-09-29 12:15:14 -04:00
Jeremy Stretch
8936528bb0 Merge branch 'develop' of github.com:digitalocean/netbox into develop-2.2 2017-09-25 15:12:47 -04:00
Jeremy Stretch
596698d246 Fixes #1522: Removed object create/edit forms from the browsable API 2017-09-20 16:54:27 -04:00
Jeremy Stretch
c6469777c8 Fixes #1520: Redirect on GET request to bulk edit/delete views 2017-09-20 09:56:20 -04:00
Jeremy Stretch
bf6f513377 Renamed form_class attribute to model_form for consistency 2017-09-12 13:55:11 -04:00
Jeremy Stretch
03cf6b4bd9 Implemented bulk interface creation for virtual machines 2017-09-12 12:49:01 -04:00
Jeremy Stretch
51279c3bce Merge branch 'virtualization' into develop-2.2 2017-09-01 12:29:12 -04:00
Jeremy Stretch
3890cdb383 Preserve query parameters on redirect after clicking "add another" 2017-09-01 12:28:34 -04:00
Jeremy Stretch
1c10b15c94 Merge branch 'develop' into virtualization 2017-08-31 10:14:50 -04:00
Jeremy Stretch
35833cfb56 Closes #1460: Hostnames with no domain are now acceptable in custom URL fields 2017-08-30 14:08:39 -04:00
Jeremy Stretch
ce470246eb Moved circuit speed humanization to a template tag 2017-08-29 22:42:06 -04:00
Jeremy Stretch
ac9d2525fc Added fitlers to return the verbose model name of an object 2017-08-29 15:10:52 -04:00
Jeremy Stretch
df740fa542 Fixes #1443: Fixed API validation error involving custom field data 2017-08-22 11:31:33 -04:00
Jeremy Stretch
09b3aa2487 Added style to BaseTable's empty_text 2017-08-21 17:38:27 -04:00
Jeremy Stretch
6813721997 Added views to add/remove hosts to/from clusters 2017-08-21 16:53:36 -04:00
Jeremy Stretch
47a2972079 Genericized component edit/delete views 2017-08-18 14:43:11 -04:00
Jeremy Stretch
ed08825dd8 Moved DeviceComponentForm to utilities.forms 2017-08-18 13:10:19 -04:00
Jeremy Stretch
593b5a2715 Merge branch 'develop' into virtualization 2017-08-16 15:08:37 -04:00
Jeremy Stretch
3de4b14af3 Fixed page titles in the browsable API 2017-08-15 15:30:45 -04:00
Jeremy Stretch
6c66a1f72f Fixes #1421: Improved model validation logic for API serializers 2017-08-15 13:54:04 -04:00
Jeremy Stretch
87509e709c Fixes #1419: Allow editing image attachments without re-uploading an image 2017-08-11 10:47:06 -04:00
Jeremy Stretch
5ff21e7371 Initial work on virtualization support (#142) 2017-08-04 17:02:52 -04:00
Jeremy Stretch
6815386708 Fixes #1385: Connected device API endpoint no longer requires authentication if LOGIN_REQUIRED=False 2017-08-02 11:17:57 -04:00
Jeremy Stretch
3674b334e9 Closes #893: Allow filtering by null values for NullCharacterFields (e.g. return only unnamed devices) 2017-07-27 09:53:41 -04:00
Jeremy Stretch
53a248c167 PEP8 fix 2017-07-25 10:58:28 -04:00
Jeremy Stretch
e5be9093fc Merge branch 'develop-2.1' into develop 2017-07-24 14:58:18 -04:00
Jeremy Stretch
b9e4652ce5 Fixes #1358: Correct VRF example values in IP/prefix import forms 2017-07-18 10:39:09 -04:00
Jeremy Stretch
8129f4328d Merge branch 'develop' into develop-2.1
Conflicts:
	netbox/netbox/settings.py
2017-07-14 10:12:35 -04:00
Jeremy Stretch
53672dc91d Optimized performance when editing/deleting objects in bulk 2017-07-13 17:39:28 -04:00
Jeremy Stretch
4d3ccf4397 Closes #838: Display details of all objects being edited/deleted in bulk 2017-07-13 16:31:47 -04:00
Jeremy Stretch
96cef1a7c4 Removed SearchTables; created DetailTables for models where needed 2017-07-12 16:42:45 -04:00
Jeremy Stretch
7dc93af5ac Closes #1320: Remove checkbox from confirmation dialog 2017-07-12 14:53:52 -04:00
Jeremy Stretch
f70891e607 Fixes #1339: Fixed disappearing checkbox column under django-tables2 v1.7+ 2017-07-12 14:05:01 -04:00
Jeremy Stretch
3637939742 Fixes #1285: Enforce model validation when creating/editing objects via the API 2017-07-06 17:37:24 -04:00
Jeremy Stretch
537aa4add8 Fixes #1319: Fixed server error when attempting to create console/power connections 2017-07-06 13:20:53 -04:00
Jeremy Stretch
911db5c358 Fixes #1289: Retain inside NAT assignment when editing an IP address 2017-07-05 14:29:40 -04:00
Jeremy Stretch
da0c8c180e Fixes #1295: Docstring typo 2017-06-26 09:31:20 -04:00
Jeremy Stretch
7a400af2e4 Fixes #1265: Fix console/power/interface connection validation when selecting a device via live search 2017-06-14 13:00:36 -04:00
Jeremy Stretch
398be0e7bb Fixes #1268: Fix CSV import error under Python 3 2017-06-14 09:55:52 -04:00
Jeremy Stretch
b76a89d921 Renamed AddViews to CreateViews for consistency 2017-06-13 16:48:21 -04:00
Jeremy Stretch
fbba8a449c Closes #913: Added headers to object CSV exports 2017-06-09 16:24:59 -04:00
Jeremy Stretch
0d651562ac Closes #704: Allow filtering VLANs by group when editing prefixes 2017-06-09 14:15:12 -04:00
Jeremy Stretch
4a6b79646a Replaced all CSVForm ChoiceFields with CSVChoiceField 2017-06-07 13:22:06 -04:00
Jeremy Stretch
e879dec1a2 Added dynamic examples for CSV form fields 2017-06-06 17:27:26 -04:00
Jeremy Stretch
54aed8789c Replaced old CSVDataField 2017-06-05 16:16:23 -04:00
Jeremy Stretch
43445096cc Renamed new import view to BulkImportView 2017-06-05 15:53:41 -04:00
Jeremy Stretch
9f06783fc9 Converted console/power import views to new scheme 2017-06-05 15:53:03 -04:00
Jeremy Stretch
8cdfac5056 Converted secrets import view to new scheme 2017-06-02 17:23:41 -04:00
Jeremy Stretch
83a50f45b5 Converted circuits import views to new scheme 2017-06-02 13:40:52 -04:00
Jeremy Stretch
cac3d5a6e6 Initial work on #655: CSV import headers 2017-05-31 17:40:11 -04:00
Jeremy Stretch
6a4e7695a6 Closes #1237: Enabled setting limit=0 to disable pagination in API requests; added MAX_PAGE_SIZE configuration setting 2017-05-30 23:24:21 -04:00
Jeremy Stretch
1f911c1567 Fixes #1229: Fix validation error on forms where API search is used 2017-05-25 14:33:50 -04:00
Jeremy Stretch
7decdab4e6 PEP8 fix 2017-05-24 14:22:37 -04:00
Jeremy Stretch
297d9c6bb9 Import unicode_literals 2017-05-24 11:33:11 -04:00
Jeremy Stretch
8a3fb44b96 Fixes #1212: Allow assigning new VLANs to global VLAN groups 2017-05-23 22:23:50 -04:00
Jeremy Stretch
88fe878d20 Fixes #1195: Unable to create an interface connection when searching for peer device 2017-05-18 13:33:26 -04:00
Jeremy Stretch
2c21492dfb Fixes #1191: Bulk selection of IPs under a prefix incorrect when "select all" is used 2017-05-17 14:23:08 -04:00
Jeremy Stretch
03c04955be PEP8 fix 2017-05-15 13:18:49 -04:00
Jeremy Stretch
29ea0066f7 Closes #1179: Adjust topology map text color based on node background 2017-05-15 12:56:16 -04:00
Jeremy Stretch
5514b20933 Fixes #1166: Re-implemented bulk IP address creation 2017-05-12 12:00:26 -04:00
Jeremy Stretch
6f23bfe860 PEP8 fixes 2017-05-11 17:54:43 -04:00
Jeremy Stretch
9b01504358 Corrected queryset filter when parent_field is None 2017-05-11 17:20:50 -04:00
Jeremy Stretch
7f94f33044 Closes #1167: Introduced ChainedModelChoiceFields 2017-05-11 16:30:16 -04:00
Jeremy Stretch
bd2f12630d Merge branch 'develop' into v2-develop 2017-05-08 15:02:06 -04:00
Jeremy Stretch
a3218274ac Closes #1100: Add a "view all" link to completed bulk import views is_pool for prefixes 2017-05-03 15:27:26 -04:00
Jeremy Stretch
cf4c32a25a Fixes #1118: Allow designating an IP as primary for a device while editing the IP 2017-05-02 16:46:23 -04:00
Jeremy Stretch
84b311e83d Fixes #1116: Correct object links on recursive deletion error 2017-05-02 11:43:11 -04:00
Jeremy Stretch
86899d010c Closes #1110: Expand bulk edit forms to include boolean fields (e.g. toggle is_pool for prefixes) 2017-04-28 12:32:27 -04:00
Jeremy Stretch
410cfab36b Merge branch 'develop' into v2-develop
Conflicts:
	netbox/ipam/forms.py
2017-04-27 15:29:40 -04:00
Jeremy Stretch
01f6798323 Fixes #1103: Correct handling of validation errors when creating IP addresses in bulk 2017-04-26 13:21:38 -04:00
Jeremy Stretch
04fc9d76ba Merge branch 'develop' into v2-develop
Conflicts:
	netbox/circuits/models.py
	netbox/netbox/settings.py
	upgrade.sh
2017-04-21 15:07:48 -04:00
Jeremy Stretch
17f0c31f36 Closes #951: Provide a side-by-side view of rack elevations 2017-04-20 13:07:22 -04:00
Jeremy Stretch
5d36ff274a Closes #1084: Include custom fields when creating IP addresses in bulk 2017-04-19 14:50:58 -04:00