94c2a2e56c
11746 fix delete custom field ( #12092 )
...
* 11746 delete custom field
* 11746 use filter instead of exclude
2023-04-04 16:38:48 -04:00
fbc23424a6
Update models.py
...
Change default MIME-Type as discussed under #12095
2023-03-30 16:58:41 -04:00
e467589730
12084 saved filters ( #12090 )
...
* 12084 change back saved filter saving
* 12084 doc string
* 12084 add test
* Pass SavedFilter initial parameters as JSON & relocate test
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-30 11:00:40 -04:00
1d2335d578
Updated _schedule_at to use local time when _interval is set ( #12006 )
...
* updated _schedule_at to use local time when _interval is set
* updated schedule_at to use local time when interval is set
2023-03-28 10:19:18 -04:00
7d64e5bc62
#12058 : Fix initial JSON population
2023-03-28 10:00:15 -04:00
a2c7452f90
12058 add clone to config context
2023-03-28 09:56:06 -04:00
654e32cbbe
11933 saved filters clone of content-types and add m2m field cloning ( #12014 )
...
* 11933 saved filters clone of content-types and add m2m field cloning
* Fix JSON rendering
* Add content_types to CustomLink.clone()
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-28 09:53:57 -04:00
879aabe2f9
12038 fix clone tag
2023-03-28 09:48:05 -04:00
835af32213
12008 make export templates cloneable
2023-03-28 09:45:44 -04:00
85f40bcbe0
Render the parameters column as JSON in SavedFiltersTable
2023-03-16 09:12:48 -04:00
e7ed280790
Add parameters to the SavedFilterTable
2023-03-16 09:12:48 -04:00
4286d74d44
Add fieldsets functionality to scripts to allow for form field groupings ( #11880 )
...
* update script template
* update docs
* introduce default_fieldset
* correct custom script docs
* default to use fieldsets in scripts
* update scripts docs for new behavior
* Misc cleanup
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-14 15:50:49 -04:00
a71a59c088
Fixes #11631 : Fix filtering changelog & journal entries by multiple content type IDs
2023-03-13 10:00:05 -04:00
267a14264b
Fixes #11927 : Correct loading of plugin resources with custom paths
2023-03-13 08:52:38 -04:00
fa60f9d2a8
Closes #11294 : Markdown Preview ( #11894 )
...
* MarkdownWidget
* Change border and color of active markdown tab
* Fix template name typo
* Add render markdown endpoint
* Static assets for markdown widget
* widget style fix and unique ids based on name
* Replace SmallTextArea with SmallMarkdownWidget
* Clear innerHTML before swapping
* render markdown directly in template
* change render markdown view path
* remove small markdown widget
* Simplify rendering logic
* Use a form to clean input Markdown data
---------
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2023-03-09 08:21:13 -05:00
0744ff2fa0
Fixes #11758 - replace unsafe chars in menu label ( #11831 )
...
* Fixes #11758 - replace unsafe chars in menu label
* Fixes #11758 - replace unsafe chars in menu label
2023-02-27 11:42:30 -05:00
5a4d8a7107
Closes #11787 : Rebuild any missing search cache entires after upgrade
2023-02-20 09:49:13 -05:00
cd09501d4d
#11685 : Omit no-op migration
2023-02-19 20:08:57 -05:00
e635e3e959
Fixes #11658 : Remove reindex command call from search migration
2023-02-19 18:57:27 -05:00
fc7cb106c1
Address feedback
2023-02-19 18:50:24 -05:00
18ea7d1e13
pep8 fixes
2023-02-19 18:50:24 -05:00
eed1b8f412
Create CachedValueField to contain search specific lookups
2023-02-19 18:50:24 -05:00
ce166b12ce
Proof of concept for showing containing prefixes when searching for ip-addresses.
2023-02-19 18:50:24 -05:00
315371bf7c
Fixes #11786 : List only applicable object types in form widget when filtering custom fields
2023-02-19 16:17:57 -05:00
c78022a74c
Change the way we invalidate the module cache to support reloading code from subpackages
2023-02-16 10:50:38 -05:00
9f91b89467
#11711 : Use CSVModelChoiceField for custom object fields during CSV import
2023-02-13 17:53:01 -05:00
d748851027
Fixes #11711 - Use CSVModelMultipleChoiceField when importing custom multiple object fields ( #11712 )
...
* Fixes #11711 - Use CSVModelMultipleChoiceField when importing custom multiple object fields
* Fix pep8
---------
Co-authored-by: kkthxbye-code <>
2023-02-13 17:49:08 -05:00
df499ea8ac
Fixes #11459 - Allow using null in conditions ( #11722 )
...
* Fixes #11459 - Allow using null in conditions
- Update docs to reflect this
- Change docs example from primary_ip to primary_ip4 as computed properties are not serialized when queuing webhooks
* Update netbox/extras/conditions.py
---------
Co-authored-by: Simon Toft <SITO@telenor.dk>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-02-13 17:44:35 -05:00
edbd597bf2
Update housekeeping command docs
2023-02-07 16:52:54 -05:00
699edd049c
Closes #11152 : Add support to abort custom script gracefully ( #11621 )
...
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2023-02-02 15:22:55 -05:00
fb2771370c
handled scripts error when only interval is used
2023-02-02 10:25:19 -05:00
e7ad6eeb74
Fixes #11613 : Correct plugin import logic fix from #11267
2023-01-27 19:56:12 -05:00
fbc9fea0a5
Fixes #11267 : Avoid catching ImportError exceptions when loading plugins ( #11566 )
...
* Avoid catching ImportErrors when loading plugin URLs
* Avoid catching ImportErrors when loading plugin resources
2023-01-27 16:44:10 -05:00
55b1549895
Closes #10762 : Permit selection custom fields to have only one choice
2023-01-25 10:27:05 -05:00
fb3d1ef399
Check for the extras.run_script permission when running scripts via. the API
2023-01-17 10:13:18 -05:00
1354947434
Get the queue from QUEUE_MAPPINGS when deleting JobResults
2023-01-09 08:22:40 -05:00
0669fda1fd
Fixes #11384 : Correct current time display on script & report forms
2023-01-06 09:42:13 -05:00
35273cc87f
Add ExportTemplatesMixin to JournalEntry model ( #11251 )
...
* Add ExportTemplatesMixin to JournalEntry model
* Move mixin ahead of base class
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2023-01-05 16:26:48 -05:00
07df622b59
NetBox should always be referred to as NetBox [DATALAD RUNCMD]
...
=== Do not change lines below ===
{
"chain": [],
"cmd": "git ls-files -z . | xargs --null -I '()' find './()' -type f -not -name 'style-guide.md' -print0 | xargs --null sed --in-place --regexp-extended 's/\\bNetbox\\b/NetBox/g;'",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
2023-01-05 16:06:00 -05:00
39985ebdd1
Fix exception when scheduling a job in the past
2023-01-05 13:52:07 -05:00
b7cdbd3d41
Fixes #11248 - Reindex only NetBox apps
2022-12-28 16:35:05 -05:00
ae440c9edf
Fixes #11223 - Accept app_label for reindex
2022-12-28 16:35:05 -05:00
98f57f2dba
11297 have custom field form display content-type instead of model
2022-12-27 15:50:08 -05:00
b35b33e798
Use the start time to calculate duration of jobs instead of created time
2022-12-22 09:52:05 -05:00
064e3ff605
Merge branch 'develop' into feature
2022-12-13 17:17:05 -05:00
b9888d6f86
Fixes #11109 : Fix nullification of custom object & multi-object fields via REST API
2022-12-13 14:48:40 -05:00
758030733c
#8366 : Misc cleanup
2022-12-12 15:27:37 -05:00
3468e8c8ae
#9623 : Misc cleanup
2022-12-12 12:56:38 -05:00
4297c65f87
Closes #10945 : Enable recurring execution of scheduled reports & scripts ( #11096 )
...
* Add interval to JobResult
* Accept a recurrence interval when executing scripts & reports
* Cleaned up jobs list display
* Schedule next job only if a reference start time can be determined
* Improve validation for scheduled jobs
2022-12-08 18:17:13 -05:00
6ffd8aa320
Introduce constants for RQ queue names
2022-12-08 09:58:52 -05:00