Commit Graph

3532 Commits

Author SHA1 Message Date
Jeremy Stretch
21c196444e Simplify changelog cleanup logic 2019-08-28 10:44:05 -04:00
Jeremy Stretch
45f5ec7e60 Add tests for changelog 2019-08-28 10:18:37 -04:00
Jeremy Stretch
a6b81a07dc Merge pull request #3453 from netbox-community/3452-change-logging
Fixes #3452: Queue deletion ObjectChanges until after response is sent
2019-08-28 09:51:54 -04:00
Jeremy Stretch
e6d307ca7d Fix script form rendering 2019-08-28 09:20:19 -04:00
Jeremy Stretch
63dd21ad03 Always include 'commit' option 2019-08-26 17:04:04 -04:00
Jeremy Stretch
c251f32fbc Fixes #3452: Queue deletion ObjectChanges until after response is sent 2019-08-26 16:52:05 -04:00
Jeremy Stretch
0a18c86bfa Merge pull request #3423 from netbox-community/3415-custom-scripts
Add custom scripting
2019-08-26 14:06:22 -04:00
Jeremy Stretch
be9c7ee6f7 Wrap script form inside a panel 2019-08-26 13:53:30 -04:00
Jeremy Stretch
15a0240df0 Fix errant changelog entries when executing a script without committing 2019-08-26 11:59:38 -04:00
Jeremy Stretch
123a6fa686 Fix typo in link 2019-08-22 10:51:29 -04:00
Jeremy Stretch
477267e191 Merge pull request #3434 from netbox-community/3428-cache-invalidation
Cache invalidation
2019-08-22 10:49:51 -04:00
Jeremy Stretch
d8a45611d5 Fix typo 2019-08-21 15:46:06 -04:00
John Anderson
75b743390e missed a merge conflict resolution 2019-08-21 14:30:07 -04:00
John Anderson
68c6c8b642 Merge branch 'develop' into 3428-cache-invalidation 2019-08-20 17:35:54 -04:00
John Anderson
7c3ed07636 #3428 changelog 2019-08-20 17:27:40 -04:00
John Anderson
426b0336f9 fix signals update call 2019-08-20 17:20:46 -04:00
John Anderson
362227f265 convert update() calls to save() calls 2019-08-20 17:16:00 -04:00
Jeremy Stretch
ed6dc806a0 Introduce BaseScript for extending Script without creating a new executable script 2019-08-19 14:40:08 -04:00
Jeremy Stretch
1afa97f454 Import Django User model automatically when running nbshell 2019-08-19 11:47:50 -04:00
Jeremy Stretch
39bb119971 Fixes #3421: Fix exception when ordering power connections list by PDU 2019-08-19 11:27:36 -04:00
Jeremy Stretch
9d1516cadc Add tests for Script Variables 2019-08-19 10:41:44 -04:00
Jeremy Stretch
9071fd9254 Closes #3430: Linkify platform field on device view 2019-08-19 09:50:41 -04:00
John Anderson
7dce9908ae remove blank line after update call 2019-08-19 02:11:54 -04:00
John Anderson
8bd1a48973 fixes #3428 - caching invalidation issues
Mitgate invalidation issues by using prefetch_related instead of select_related.
Also use invalidated_update instead of just update.
2019-08-19 01:53:39 -04:00
Jeremy Stretch
d643dde3a0 Updated docs for IPNetworkVar and FileVar 2019-08-16 15:31:29 -04:00
Jeremy Stretch
c8c6c783b2 Add FileVar for file uploads 2019-08-16 15:27:58 -04:00
Jeremy Stretch
bfd73db5b6 Change fields to field_order 2019-08-15 16:19:25 -04:00
Jeremy Stretch
244d3b7883 Docs updates 2019-08-15 16:07:15 -04:00
Jeremy Stretch
a26e1485ed Changelog for #3426 2019-08-15 15:31:05 -04:00
Jeremy Stretch
de689354a6 Merge pull request #3427 from candlerb/candlerb/3426
Improve API error handling when a list is given as a choice value
2019-08-15 15:29:47 -04:00
Brian Candler
9ad8b8331b Improve API error handling when a list is given as a choice value
Fixes #3426
2019-08-15 17:16:24 +01:00
Jeremy Stretch
52ffab980f Closes #3391: Update Bootstrap CSS to v3.4.1 2019-08-15 11:47:57 -04:00
Jeremy Stretch
95693c6565 Fixes #3424: Fix tag coloring for non-linked tags 2019-08-15 11:12:52 -04:00
Jeremy Stretch
c40b630c36 Closes #3386: Add mac_address filter for virtual machines 2019-08-15 11:02:40 -04:00
Jeremy Stretch
f4b2015f1d Add TextVar for large text entry 2019-08-14 16:20:52 -04:00
Jeremy Stretch
7b27af3273 Fix table column widths 2019-08-14 15:46:08 -04:00
Jeremy Stretch
9931d4d1a0 Add markdown rendering for log mesages 2019-08-14 14:38:11 -04:00
Jeremy Stretch
502e745509 Include stack trace when catching an exception 2019-08-14 14:26:13 -04:00
Jeremy Stretch
f0ec068650 Use TreeNodeChoiceField for MPTT objects 2019-08-14 14:03:11 -04:00
Jeremy Stretch
81bb6a59e2 Add convenience functions for loading YAML/JSON data from file 2019-08-14 13:08:21 -04:00
Jeremy Stretch
a752754852 Show script log when an exception occurs 2019-08-14 12:19:36 -04:00
Jeremy Stretch
500eb63d9f Fix notice when form does not require user input 2019-08-14 10:18:25 -04:00
Jeremy Stretch
ce43e5f6ea Record script execution time 2019-08-14 10:12:30 -04:00
Jeremy Stretch
52de9d227a Tweak form display (cosmetic) 2019-08-14 09:40:23 -04:00
Jeremy Stretch
a0d181728a Add IPNetworkVar 2019-08-13 09:48:51 -04:00
Jeremy Stretch
f1e12213e7 Allow user to override module name 2019-08-13 09:09:12 -04:00
Jeremy Stretch
fc9a5c5cd1 Meta.fields should be optional 2019-08-12 16:59:09 -04:00
Jeremy Stretch
90bb0d47df Add option to commit database changes 2019-08-12 14:28:06 -04:00
Jeremy Stretch
ab16af1265 Implemented run_script() wrapper 2019-08-12 13:51:25 -04:00
Jeremy Stretch
eeacd04483 Move script attributes under a Meta class 2019-08-12 13:16:18 -04:00