Commit Graph

5774 Commits

Author SHA1 Message Date
Jeremy Stretch
07a8a11229 #4416: Add individual delete views for organizational objects 2020-07-01 12:08:26 -04:00
Jeremy Stretch
dd55eace23 Extend GetReturnURLMixin to automatically resolve default return URL for querysets 2020-07-01 11:50:31 -04:00
Jeremy Stretch
07e4bb3eb0 Add changelog for #4695 and #4708 2020-07-01 11:06:49 -04:00
Jeremy Stretch
48716ff75b Merge pull request #4797 from netbox-community/4695_fix_api_cable_choices_termination_types
Fixes #4695 - Add Metadata class that returns content type choices
2020-07-01 11:03:01 -04:00
Jeremy Stretch
4cee9a6b9b Merge pull request #4706 from netbox-community/4604_check_position_stack
4708: more flexible checks on RearPort usage
2020-07-01 10:59:17 -04:00
Jeremy Stretch
488cf288f5 Automatically import ContentType when entering nbshell 2020-06-30 16:34:53 -04:00
Jeremy Stretch
a86ce61db0 Fix evaluation of empty label_pattern 2020-06-30 16:30:54 -04:00
Jeremy Stretch
818f6ee468 Enable bulk editing of device component labels 2020-06-30 16:15:17 -04:00
Jeremy Stretch
0be63e7c9d Remove reference to choices API endpoints 2020-06-30 15:55:15 -04:00
Jeremy Stretch
9f91f20dbd Closes #4807: Add bulk edit ability for device bay templates 2020-06-30 15:22:30 -04:00
Jeremy Stretch
6e100ba372 Closes #4793: Add description field to device component templates 2020-06-30 15:12:53 -04:00
Jeremy Stretch
20dc440a92 Fixes #4771: Fix add/remove tag population when bulk editing objects 2020-06-30 09:55:54 -04:00
Jeremy Stretch
d9992d5e20 Fixes #4774: Fix exception when deleting a device with device bays 2020-06-30 09:43:05 -04:00
John Anderson
a91de7f5da fix previous job result deletion 2020-06-30 09:29:50 -04:00
Jeremy Stretch
5d9ab02f87 Closes #4796: Introduce configuration parameters for default rack elevation size 2020-06-30 09:26:32 -04:00
Jeremy Stretch
d60c46c0a4 Closes #4802: Allow changing page size when displaying only a single page of results 2020-06-30 09:00:42 -04:00
Jeremy Stretch
11c4f11e58 TagFilter should call unrestricted() on its queryset 2020-06-29 16:07:14 -04:00
Jeremy Stretch
1858f588f4 Wrap ComponentTraceMixin in a parent class 2020-06-29 15:14:12 -04:00
Jeremy Stretch
9da56ce6fe Base manager for Tag should use RestrictedQuerySet 2020-06-29 14:57:29 -04:00
Jeremy Stretch
62a5eb3650 Fix evaluation of RestrictedQuerySet 2020-06-29 14:42:37 -04:00
Jeremy Stretch
c4040a517d Fix evaluation of RestrictedQuerySet 2020-06-29 14:41:43 -04:00
Jeremy Stretch
c5007f6099 Introduce ComponentTraceMixin to minimize boilerplate 2020-06-29 14:40:36 -04:00
John Anderson
dbf14b201e fix tests and cleanup 2020-06-29 14:34:42 -04:00
Jeremy Stretch
3445147773 Fix unrestricted evaluations of RestrictedQuerySet 2020-06-29 13:31:26 -04:00
Jeremy Stretch
2c47e3341c Prefetch tagged VLANs for VMInterfaces 2020-06-29 12:18:59 -04:00
Jeremy Stretch
1711585886 Standardize VMInterfaceTest 2020-06-29 12:06:36 -04:00
Jeremy Stretch
bca760dc24 Add graphs endpoint to VMInterfaceViewSet 2020-06-29 12:05:00 -04:00
Jeremy Stretch
e88a9a02f9 Fix evaluation of RestrictedQuerySets 2020-06-29 11:48:36 -04:00
Jeremy Stretch
1f3ff5f7d5 Fix evaluation of RestrictedQuerySets 2020-06-29 11:35:13 -04:00
Jeremy Stretch
220352f44b Fix RestrictedQuerySet evaluation in tests 2020-06-29 11:27:23 -04:00
Jeremy Stretch
b1392a05bb Signal receiver should call unrestricted() 2020-06-29 11:07:11 -04:00
Jeremy Stretch
9e4ba278fc Tweak querysets to work with restriction 2020-06-29 10:57:09 -04:00
Jeremy Stretch
66b8070c00 Update API tests to work with RestrictedQuerySet 2020-06-29 10:39:06 -04:00
Jeremy Stretch
c671a6133a Update WritableNestedSerializer to call unrestricted() on RestrictedQuerySets 2020-06-29 10:38:32 -04:00
Jeremy Stretch
487013fd25 Call restrict() when retrieving related Graphs 2020-06-29 10:14:43 -04:00
John Anderson
d2ff019306 refactor migration 2020-06-29 04:22:01 -04:00
John Anderson
ec4be16aef Implements #2006 - run reports and scripts in the background 2020-06-29 03:50:05 -04:00
Jeremy Stretch
3f75f934e0 Apply restrict_form_fields() to import views 2020-06-26 16:26:22 -04:00
Jeremy Stretch
f6986ef525 Update test methods to call unrestricted() on RestrictedQuerySets 2020-06-26 16:15:21 -04:00
Ryan Merolle
b1f41b917b add missing NEMA power ports/outlets (#4784)
* add various NEMA power ports/outlets
2020-06-26 15:34:38 -04:00
Jeremy Stretch
3086a7f4ec Use unrestricted() when compiling ObjectPermissions for user 2020-06-26 15:28:08 -04:00
Jeremy Stretch
8b30972836 Fix the initial permissions check on create/edit view tests 2020-06-26 15:21:59 -04:00
Jeremy Stretch
2ebceb85af Fix the initial permissions check on create/edit/delete view tests 2020-06-26 15:17:07 -04:00
Jeremy Stretch
a755b603ea Link to cable termination objects 2020-06-26 15:13:41 -04:00
Jeremy Stretch
b0bbf53b3a Apply restrict_form_fields() to bulk edit views 2020-06-26 15:11:05 -04:00
Jeremy Stretch
b6d857921e Remove redundant ObjectPermissionViewTestCase 2020-06-26 15:00:47 -04:00
Jeremy Stretch
05fd90fa63 Fix create, edit view test methods 2020-06-26 14:48:04 -04:00
Jeremy Stretch
a6f2f148f7 Fix automatic creation of UserConfig for user created via admin UI 2020-06-26 14:29:24 -04:00
Jeremy Stretch
d8d520a6d6 Introduce restrict_form_fields() to automatically restrict field querysets based on user 2020-06-26 13:59:53 -04:00
Jeremy Stretch
e521d2baa3 Force restriction of RestrictedQuerySet even for superusers 2020-06-26 13:18:12 -04:00