Commit Graph

613 Commits

Author SHA1 Message Date
Saria Hajjar
8a8a8dbc3c Avoid overriding private attribute in super 2020-01-30 17:49:42 +00:00
Jeremy Stretch
1fbf137ccf Closes #4051: Disable the makemigrations management command 2020-01-30 10:12:53 -05:00
Jeremy Stretch
447240c801 Enable CSV import for custom fields 2020-01-29 14:29:47 -05:00
Jeremy Stretch
098f47462c Rename and simplify CustomFieldChoiceField 2020-01-29 11:00:03 -05:00
Jeremy Stretch
36df544f09 Merge pull request #3885 from hSaria/568-csv-import-cf
Fixes #568: CSV import/export of custom fields
2020-01-29 10:11:40 -05:00
Jeremy Stretch
d841c8c2d8 Remove obsolete constants 2020-01-27 12:34:52 -05:00
Saria Hajjar
f7f141c69e Fixes #3313: YAML-format the config context in the GUI 2020-01-25 15:56:24 +00:00
hSaria
ad1953a7b7 Merge branch 'develop' into 2921-tags-select2 2020-01-24 20:56:36 +00:00
Jeremy Stretch
7784435aa9 #3880: Define constants for arbitrary values 2020-01-24 14:42:57 -05:00
Jeremy Stretch
debe6fc1d8 Add tests for ChoiceSet 2020-01-23 16:19:34 -05:00
Jeremy Stretch
5da8b4dfd8 Handle grouped choices when returning ChoiceSet values 2020-01-23 16:16:52 -05:00
hSaria
4c31311dfc Merge branch 'develop' into 568-csv-import-cf 2020-01-23 20:27:07 +00:00
Saria Hajjar
39e0c1f8f9 Use model's get_custom_fields 2020-01-23 20:26:21 +00:00
Saria Hajjar
16f72769b7 Cleaned the CustomField choice field 2020-01-23 18:54:37 +00:00
Saria Hajjar
017c92aae9 Explicitly use the value of the choice, instead of relying on __str__ 2020-01-23 17:37:51 +00:00
Saria Hajjar
a802846cb7 Moved the header join logic after the custom fields are added 2020-01-23 17:18:58 +00:00
Jeremy Stretch
dc567799ed Move min/max prefix length validators to ipam.validators 2020-01-22 16:26:06 -05:00
hSaria
28c1da9b30 Merge branch 'develop' into 568-csv-import-cf 2020-01-21 21:30:38 +00:00
hSaria
29975ae2de Merge branch 'develop' into 2921-tags-select2 2020-01-21 21:29:21 +00:00
Jeremy Stretch
defe87b4b0 Fixes #3937: Suppress warning messages in tests for requests expected to yield a 4XX response 2020-01-17 14:53:33 -05:00
hSaria
8f9fe8b937 Merge branch 'develop' into 568-csv-import-cf 2020-01-16 22:47:10 +00:00
hSaria
a4f460ddbd Merge branch 'develop' into 2921-tags-select2 2020-01-16 21:52:14 +00:00
Saria Hajjar
ccb0c753ed Merge branch 'develop' into 568-csv-import-cf 2020-01-16 16:05:01 +00:00
Jeremy Stretch
2c498e5516 Use assertHttpStatus() when evaluating HTTP response status 2020-01-16 10:47:45 -05:00
Saria Hajjar
79c943c5ea Merge branch 'develop' into 2921-tags-select2 2020-01-16 15:33:42 +00:00
Jeremy Stretch
e1eb8a86df Remove obsolete utility function model_names_to_filter_dict() 2020-01-15 16:21:41 -05:00
Jeremy Stretch
c19ad86328 Refactor FieldChoicesViewSet; add Interface.type to virtualization _choices endpoint 2020-01-15 09:59:44 -05:00
Jeremy Stretch
f7bdd7529d Move unpack_grouped_choices() to utilities.choices 2020-01-15 09:36:39 -05:00
Jeremy Stretch
a1f62f63f7 Add _choices endpoint tests for all apps 2020-01-14 16:13:11 -05:00
Jeremy Stretch
dfac1a044f Define __all__ for models.py within each app 2020-01-14 12:01:23 -05:00
Saria Hajjar
8541d6a031 Fetch choices during form initialization 2020-01-14 08:22:27 +00:00
hSaria
b547c9ddad Merge branch 'develop' into 568-csv-import-cf 2020-01-13 21:17:29 +00:00
Saria Hajjar
7f2a810621 Tag filter field for filter forms 2020-01-13 20:16:13 +00:00
Jeremy Stretch
a3bb57f130 Change DeviceType export from CSV to YAML 2020-01-13 15:10:16 -05:00
Saria Hajjar
763ec7c498 Removed tags filter field from view 2020-01-13 19:06:05 +00:00
Saria Hajjar
5c80b1961f Fixes #2921: Replace tags filter with Select2 widget 2020-01-11 15:18:27 +00:00
Jeremy Stretch
abc10ed488 Merge branch 'develop' into develop-2.7 2020-01-10 13:33:51 -05:00
Saria Hajjar
7b6b4f6e74 Fixed import choice name 2020-01-10 14:58:15 +00:00
Saria Hajjar
1a8a16c32c CSV import/export custom fields 2020-01-10 14:26:39 +00:00
Saria Hajjar
86433215a4 Added tests for alphanumeric 2020-01-10 11:54:43 +00:00
Saria Hajjar
c31309a013 Negative tests for expand_ipaddress_pattern 2020-01-10 11:21:37 +00:00
Saria Hajjar
260a26e1b0 Added tests for IPv6 2020-01-10 11:06:01 +00:00
Saria Hajjar
14d0b741d5 Removed redundant list call 2020-01-10 10:26:46 +00:00
Jeremy Stretch
765ff6a126 Rename filter variables for utility views 2020-01-09 20:57:13 -05:00
Jeremy Stretch
f14400b7a7 Use ChoiceSet.values() for access to raw values 2020-01-09 14:56:33 -05:00
Jeremy Stretch
414c10af53 Fixes #3868: Fix creation of interfaces for virtual machines 2020-01-09 14:54:25 -05:00
Saria Hajjar
7e37ffab80 Added tests for IPv4 2020-01-09 18:26:10 +00:00
Saria Hajjar
d751c853b8 Added example and handled invalid ranges gracefully 2020-01-08 17:28:31 +00:00
Saria Hajjar
b514d7c087 Fixes #3623: Word expansion for interfaces 2020-01-08 17:23:09 +00:00
Jeremy Stretch
ff25363a12 Merge branch 'develop' into develop-2.7 2020-01-03 14:21:53 -05:00
Jeremy Stretch
e28379ecdd Fixes #3831: Fix API-driven filter field rendering (#3812 regression) 2020-01-03 11:25:22 -05:00
Jeremy Stretch
ab7bb5c374 Merge branch 'develop' into develop-2.7 2020-01-02 17:21:15 -05:00
Saria Hajjar
cc9aa2083f Comment clarification 2020-01-01 16:04:08 +00:00
Saria Hajjar
12b93de987 Fixes #3812: Only preload selected options for API-based select 2020-01-01 15:54:00 +00:00
Jeremy Stretch
22bb9f42a6 Introduce render_jinja2() convenience function 2019-12-31 14:00:55 -05:00
Jeremy Stretch
8e0055ca7e Fixes #3106: Restrict queryset of chained fields when form validation fails 2019-12-31 12:41:02 -05:00
Saria Hajjar
aa75fd0614 Add datetime widgets 2019-12-28 22:55:00 +00:00
Jeremy Stretch
0cfc27b58b Fixes #3780: Fix AttributeError exception in API docs 2019-12-19 14:04:18 -05:00
Jeremy Stretch
3506f93cd7 Introduced clone, edit, and delete buttons 2019-12-13 15:54:50 -05:00
Jeremy Stretch
1ffc40e8f0 CSVChoiceField should default to a blank string instead of None 2019-12-11 17:04:48 -05:00
Jeremy Stretch
c7232674a1 Introduce is_taggable utility function for identifying taggable models 2019-12-11 15:52:35 -05:00
kobayashi
6f4eeaa83a implement 3664 2019-12-11 04:58:42 -05:00
Jeremy Stretch
08ad1ec44b Fix inclusion of legacy IDs on choice fields 2019-12-10 12:07:54 -05:00
John Anderson
0dfddeff6b update openapi field type for choice field value fields to string 2019-12-09 00:41:43 -05:00
Jeremy Stretch
9719098f6b Closes #648: Pre-populate forms when selecting "create and add another" 2019-12-06 16:40:39 -05:00
Jeremy Stretch
beed4c2cb8 Implement tag replication for #33 2019-12-06 16:22:56 -05:00
Jeremy Stretch
ef79579119 Closes #33: Add ability to clone objects (pre-populate form fields) 2019-12-06 16:13:52 -05:00
Jeremy Stretch
7c9f810555 Rack.outer_unit to slug (#3569) 2019-11-25 20:54:24 -05:00
Jeremy Stretch
79f501d897 Circuit.status (#3569) 2019-11-07 11:11:10 -05:00
Jeremy Stretch
02a8dc36c0 Introduce ChoiceSet class for field choices 2019-11-07 10:33:10 -05:00
Jeremy Stretch
01ac6d560d Merge branch 'develop' into develop-2.7 2019-11-01 16:19:36 -04:00
Jeremy Stretch
f9cb41d000 Move TreeNodeMultipleChoiceFilter tests to utilities (follow-up to #3616) 2019-11-01 15:01:24 -04:00
Jeremy Stretch
522e159abb Merge pull request #3616 from kobayashi/3357
allow null region filtering
2019-11-01 14:29:32 -04:00
kobayashi
f8b3518897 filtering multiple regions with null 2019-10-28 02:24:44 -04:00
Jeremy Stretch
b6beb37e36 Rewrote ObjectChangeMiddleware to remove the curried handle_deleted_object() function 2019-10-22 15:10:49 -04:00
kobayashi
11bfd770dc allow null region filtering 2019-10-22 00:41:49 -04:00
Jeremy Stretch
531edc21f3 Merge branch 'develop' into 451-devicetype-import 2019-10-10 13:50:57 -04:00
chambersh1129
de71669d93 Replace all instances of .extra() in QuerySets with annotations, including references in docstrings 2019-10-09 20:11:02 -04:00
Jeremy Stretch
539c9e5ec7 Closes #3471: Disallow raw HTML in Markdown-rendered fields 2019-10-09 14:47:40 -04:00
Jeremy Stretch
6b4e065b67 Force checkbox table columns to narrow width 2019-10-07 17:22:35 -04:00
Jeremy Stretch
b4acade70d Miscellaneous cleanup 2019-10-04 12:59:10 -04:00
Jeremy Stretch
3d2e535866 Enforce object creation permissions 2019-10-01 16:54:10 -04:00
Jeremy Stretch
7ac8f223ea Fix YAMLLoadWarning 2019-10-01 16:39:11 -04:00
Jeremy Stretch
2e373bcd28 Rewrote test for DeviceType import 2019-10-01 16:36:31 -04:00
Jeremy Stretch
02ecb22c24 Adopted a different approach to importing related objects 2019-09-27 16:51:12 -04:00
Jeremy Stretch
980972c942 Capture MultiObjectField default form field values 2019-09-25 16:19:22 -04:00
Jeremy Stretch
db64aa7322 Capture import form field default values 2019-09-25 16:06:09 -04:00
Jeremy Stretch
7b37b3f8a1 Merge branch 'develop' into 451-devicetype-import 2019-09-25 13:44:48 -04:00
Jeremy Stretch
b0a6b3c848 Force validation of individual objects within a MultiObjectField 2019-09-24 16:51:59 -04:00
Jeremy Stretch
45bed25234 Move JSON/YAML data valdiation to ImportForm 2019-09-24 16:13:52 -04:00
Jeremy Stretch
358f686ede Fix form rendering; enable toggling of redirect to imported object 2019-09-24 15:58:23 -04:00
Daniel Sheppard
c6243e63ab Fixes: #3464 - Change color picker to dynamic coloring from static CSS 2019-09-24 09:39:06 -05:00
Jeremy Stretch
0b1f3751fa Add RearPortTemplate power_port field 2019-09-20 15:16:14 -04:00
Jeremy Stretch
a8a2a786a1 Extend DeviceType import to include related objects 2019-09-20 14:02:14 -04:00
Jeremy Stretch
7f641c77f5 Fixes #3514: Label TextVar fields when rendering custom script forms 2019-09-18 15:39:26 -04:00
Jeremy Stretch
aedffce736 Closes #3510: Add minimum/maximum prefix length enforcement for IPNetworkVar 2019-09-17 16:36:36 -04:00
Jeremy Stretch
04ecd5e147 Initial work on JSON/YAML-based DeviceType import 2019-09-13 16:18:29 -04:00
Daniel Sheppard
5965a42979 Add in in-line vlan editing and Bulk vlan editing (#3350)
* Fixes #3341 - Added in-line vlan editing
* Fixes #2160 - Added bulk vlan editing

Inconsequential behaviour changes:

* APISelect can now take "full=True" to return a non-brief set
* Select2 will no group by "group & site, group, site, global" if full=True is set in APISelect
2019-09-06 12:45:37 -05: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