Jeremy Stretch
|
86d1370512
|
Apply restrict_form_fields() to import views
|
2020-06-26 16:26:22 -04:00 |
|
Jeremy Stretch
|
8c0adc9c61
|
Update test methods to call unrestricted() on RestrictedQuerySets
|
2020-06-26 16:15:21 -04:00 |
|
Jeremy Stretch
|
04571ce920
|
Fix the initial permissions check on create/edit view tests
|
2020-06-26 15:21:59 -04:00 |
|
Jeremy Stretch
|
9a1531442a
|
Apply restrict_form_fields() to bulk edit views
|
2020-06-26 15:11:05 -04:00 |
|
Jeremy Stretch
|
84db1adfaf
|
Fix create, edit view test methods
|
2020-06-26 14:48:04 -04:00 |
|
Jeremy Stretch
|
edc65a6a34
|
Introduce restrict_form_fields() to automatically restrict field querysets based on user
|
2020-06-26 13:59:53 -04:00 |
|
Jeremy Stretch
|
8412f9481c
|
Force restriction of RestrictedQuerySet even for superusers
|
2020-06-26 13:18:12 -04:00 |
|
Jeremy Stretch
|
9777f25b9f
|
Set the default action to 'view' for restrict()
|
2020-06-26 11:57:07 -04:00 |
|
Jeremy Stretch
|
128327b8a3
|
Split url_name template filter into viewname() and validated_viewname()
|
2020-06-25 16:50:35 -04:00 |
|
Jeremy Stretch
|
2e272132b0
|
Add test method for changelog view
|
2020-06-25 15:43:47 -04:00 |
|
Jeremy Stretch
|
1dbae5b64c
|
Closes #4792: Add bulk rename capability for console and power ports
|
2020-06-25 14:18:29 -04:00 |
|
Jeremy Stretch
|
3badfd756c
|
Extend DeviceComponentViewTestCase to include GetObjectViewTestCase
|
2020-06-25 11:04:42 -04:00 |
|
Jeremy Stretch
|
909ddd653c
|
Extend ObjectView to provide a default get() method
|
2020-06-25 10:53:00 -04:00 |
|
Jeremy Stretch
|
2f19350ff5
|
Tweak url_name template filter to work with URLs which need a PK
|
2020-06-25 10:49:30 -04:00 |
|
Jeremy Stretch
|
68ef5177f0
|
Introduce template filters for checking dynamic permissions
|
2020-06-25 10:48:21 -04:00 |
|
Jeremy Stretch
|
ba138de53b
|
Fix display of tags
|
2020-06-24 16:27:44 -04:00 |
|
Jeremy Stretch
|
052555c3f7
|
Add bulk renaming function for VM interfaces
|
2020-06-24 10:02:40 -04:00 |
|
Jeremy Stretch
|
e3820e93b7
|
Misc cleanup, renaming
|
2020-06-23 16:39:43 -04:00 |
|
Jeremy Stretch
|
548127cc88
|
Rename VMInterface serializers
|
2020-06-23 15:46:20 -04:00 |
|
Jeremy Stretch
|
6cb31a274f
|
Initial work on #4721 (WIP)
|
2020-06-22 13:10:56 -04:00 |
|
Jeremy Stretch
|
181bcd70ad
|
Fix schema migrations for device components
|
2020-06-22 12:01:57 -04:00 |
|
Jeremy Stretch
|
88bf183af5
|
Merge branch 'develop' into develop-2.9
|
2020-06-18 13:20:32 -04:00 |
|
Jeremy Stretch
|
c5dc075fb0
|
Fixes #4775: Allow selecting an alternate device type when creating component templates
|
2020-06-18 11:59:24 -04:00 |
|
Jeremy Stretch
|
11a247edc2
|
Fix up tests
|
2020-06-18 10:32:22 -04:00 |
|
Jeremy Stretch
|
328d639886
|
Merge branch 'develop' into develop-2.9
|
2020-06-17 16:57:17 -04:00 |
|
Jeremy Stretch
|
26770515e1
|
Refactor TestCase to provide model_to_dict(), prepare_instance()
|
2020-06-17 15:36:56 -04:00 |
|
Jeremy Stretch
|
360c56ec34
|
Fix permission evaluation for BulkComponentCreateViews
|
2020-06-17 13:30:00 -04:00 |
|
Jeremy Stretch
|
2d4694e72d
|
Merge pull request #4770 from netbox-community/3703-limit-tag-creation
Closes #3703: Restrict tag creation
|
2020-06-17 12:28:04 -04:00 |
|
Jeremy Stretch
|
54ece346bc
|
DummyQuerySet should be iterable to allow for serialization
|
2020-06-17 12:20:56 -04:00 |
|
Jeremy Stretch
|
448dc1442c
|
Replace TaggitSerializer and TagListSerializerField with TaggedObjectSerializer
|
2020-06-17 09:57:17 -04:00 |
|
Jeremy Stretch
|
4ae05dddeb
|
Tag should use a stock manager by default
|
2020-06-16 17:02:03 -04:00 |
|
Jeremy Stretch
|
b318bde76c
|
Fix queryset reference under BulkDeleteView
|
2020-06-16 16:40:16 -04:00 |
|
Jeremy Stretch
|
7cf0e6034b
|
Optimize tag population under prepare_cloned_fields()
|
2020-06-16 15:12:50 -04:00 |
|
Jeremy Stretch
|
c7aa0a2321
|
Fix prepare_cloned_fields() inefficiency
|
2020-06-16 15:08:14 -04:00 |
|
Jeremy Stretch
|
067e89f6a0
|
Allow unrestricted access to assigned tags
|
2020-06-16 14:59:22 -04:00 |
|
Jeremy Stretch
|
adf0255bdf
|
Allow unrestricted access to assigned tags
|
2020-06-16 14:17:40 -04:00 |
|
Jeremy Stretch
|
ed0b38c7a7
|
Bypass restriction for querysets used for filtering by related object
|
2020-06-16 13:15:58 -04:00 |
|
Jeremy Stretch
|
fa0ff8be39
|
Restrict ExportTemplates available via export button
|
2020-06-16 13:06:03 -04:00 |
|
Jeremy Stretch
|
ffb43a8534
|
Introduce unrestricted() method on RestrictedQuerySet
|
2020-06-16 12:20:21 -04:00 |
|
Jeremy Stretch
|
ce5fd7955f
|
Catch and log evaluation of RestrictedQuerySet without calling restrict()
|
2020-06-16 10:39:15 -04:00 |
|
Jeremy Stretch
|
e917535380
|
Merge branch 'develop' into develop-2.9
|
2020-06-15 16:04:32 -04:00 |
|
Jeremy Stretch
|
57cfb4ed7e
|
Fixes #4760: Enable power port template assignment when bulk editing power outlet templates
|
2020-06-15 13:18:26 -04:00 |
|
Jeremy Stretch
|
5af2b3c2f5
|
Closes #4717: Introduce ALLOWED_URL_SCHEMES configuration parameter to mitigate dangerous hyperlinks
|
2020-06-15 11:53:47 -04:00 |
|
Jeremy Stretch
|
9fc4a4f24a
|
Closes #4755: Enable creation of rack reservations directly from navigation menu
|
2020-06-12 15:11:27 -04:00 |
|
Jeremy Stretch
|
e905a36fb2
|
Update tests for tag changes
|
2020-06-12 11:33:23 -04:00 |
|
Jeremy Stretch
|
057a022205
|
Clean up and improve UI view tests
|
2020-06-11 16:12:50 -04:00 |
|
Jeremy Stretch
|
9b48a26aef
|
Merge pull request #4723 from jsenecal/4615_interface_label
Closes: #4615 Physical labels
|
2020-06-11 13:03:46 -04:00 |
|
Jonathan Senecal
|
25cbab2ea4
|
Avoid checking field twice on all iterations
Yields a small performance improvement
Co-authored-by: Jeremy Stretch <jeremy.stretch@networktocode.com>
|
2020-06-10 22:16:46 -04:00 |
|
Jonathan Senecal
|
cf81a8979f
|
Avoid component_type on subclasses
|
2020-06-10 22:10:45 -04:00 |
|
Jonathan Senecal
|
81d08ac50b
|
Stay consistent with codebase: i vs pos
|
2020-06-10 16:41:52 -04:00 |
|