Commit Graph

5657 Commits

Author SHA1 Message Date
Jeremy Stretch
f6986ef525 Update test methods to call unrestricted() on RestrictedQuerySets 2020-06-26 16:15:21 -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
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
Jeremy Stretch
e021fce0a6 Fix some instances where RestrictedQuerySet is evaluated prematurely 2020-06-26 12:22:02 -04:00
Jeremy Stretch
b135efe81b Set the default action to 'view' for restrict() 2020-06-26 11:57:07 -04:00
Jeremy Stretch
1e2a85d35c Move utility functions to utils.py 2020-06-26 11:56:30 -04:00
Jeremy Stretch
2d935e3c6e Closes #4795: Add bulk disconnect capability for console and power ports 2020-06-25 17:08:51 -04:00
Jeremy Stretch
2e89b80031 Split url_name template filter into viewname() and validated_viewname() 2020-06-25 16:50:35 -04:00
Jeremy Stretch
c89a29d319 Tweak ObjectChangeLogView to work with both restricted and unrestricted querysets 2020-06-25 15:58:13 -04:00
Jeremy Stretch
2d77c44740 Add test method for changelog view 2020-06-25 15:43:47 -04:00
Jeremy Stretch
a93bc52818 Closes #4792: Add bulk rename capability for console and power ports 2020-06-25 14:18:29 -04:00
Jeremy Stretch
a860a4959c Merge pull request #4790 from netbox-community/4788-component-views
#4788: Add individual views for device components
2020-06-25 13:38:09 -04:00
Jeremy Stretch
fb9ebadee5 Fix typo 2020-06-25 13:36:54 -04:00
Jeremy Stretch
522275d433 Add plugin buttons & content to device component views 2020-06-25 13:27:01 -04:00
Jeremy Stretch
e7ba126b80 Changelog for #4788 2020-06-25 12:22:21 -04:00
Jeremy Stretch
9edd27b20c Linkify components under device view 2020-06-25 12:21:25 -04:00
Jeremy Stretch
1b80758412 Fix device component changelog display 2020-06-25 12:09:56 -04:00
Jeremy Stretch
9e82fbd54f Update and simplify device component tables 2020-06-25 12:03:44 -04:00
Jeremy Stretch
fa71921fa5 Extend DeviceComponentViewTestCase to include GetObjectViewTestCase 2020-06-25 11:04:42 -04:00
Jeremy Stretch
422db03515 Add individual views for device components 2020-06-25 11:01:18 -04:00
Jeremy Stretch
261082ef9b Add/update device component templates 2020-06-25 11:00:25 -04:00
Jeremy Stretch
547317ea7b Extend ObjectView to provide a default get() method 2020-06-25 10:53:00 -04:00
Jeremy Stretch
54b4e94260 Tweak url_name template filter to work with URLs which need a PK 2020-06-25 10:49:30 -04:00
Jeremy Stretch
45a2f1741e Introduce template filters for checking dynamic permissions 2020-06-25 10:48:21 -04:00
Jeremy Stretch
803f5cb54c Fix display of tags 2020-06-24 16:27:44 -04:00
Jeremy Stretch
c6fefa1df1 Changelog for #2018 2020-06-24 16:22:37 -04:00
Jeremy Stretch
d8646bc649 Merge pull request #4787 from netbox-community/2018-virtual-chassis-name
#2018: Add name field to VirtualChassis model
2020-06-24 16:14:21 -04:00
Jeremy Stretch
20f382c318 Fix signal logic 2020-06-24 15:57:52 -04:00
Jeremy Stretch
1ff95932ff Enable CSV import for virtual chassis 2020-06-24 15:29:25 -04:00
Jeremy Stretch
1a52a7b88a Initial work on #2018: Add name to VirtualChassis 2020-06-24 15:21:42 -04:00
Jeremy Stretch
af15ba9d40 Update changelog for #4721 2020-06-24 12:44:00 -04:00
Jeremy Stretch
63d4b1f7f6 Merge pull request #4781 from netbox-community/4721-virtualmachine-interface
#4721: Move VM interfaces to a separate model (WIP)
2020-06-24 12:10:20 -04:00
Jeremy Stretch
e833b5206f Restore ability to assign interface when editing an IPAddress 2020-06-24 11:30:28 -04:00
Jeremy Stretch
d6bf1ff2ab Update VMInterface view names 2020-06-24 10:09:22 -04:00
Jeremy Stretch
a38b1521e9 Add bulk renaming function for VM interfaces 2020-06-24 10:02:40 -04:00
Jeremy Stretch
632b557992 Update device/VM interface templates 2020-06-24 09:52:22 -04:00
Jeremy Stretch
4744532489 Rename 'vm_interface' to 'vminterface'; misc cleanup 2020-06-24 09:27:30 -04:00
Jeremy Stretch
a9d4127e49 Restore interface filtering for IPAddresses 2020-06-24 09:22:35 -04:00
Jeremy Stretch
72325b2ef1 Fix VMInterface bulk creation 2020-06-23 17:28:34 -04:00
Jeremy Stretch
445f6d4b06 Add VMInterface CSV import view 2020-06-23 17:09:21 -04:00
Jeremy Stretch
ef0fd9e824 Add VMInterface list view 2020-06-23 16:52:05 -04:00
Jeremy Stretch
381e7cd4e3 Misc cleanup, renaming 2020-06-23 16:39:43 -04:00
Jeremy Stretch
3feaf5f556 Restore interface assignment for IPAddress CSV import 2020-06-23 16:09:31 -04:00