jeremystretch
5a3e99626d
Simplify add/import/export button invocation
2022-03-10 15:56:09 -05:00
jeremystretch
655bc49fad
Clean up form select widgets
2022-03-07 15:11:57 -05:00
jeremystretch
cd29293dd6
Merge v3.1.9
2022-03-07 10:55:30 -05:00
Jeremy Stretch
bffe63a233
Merge pull request #8793 from seros1521/fix_8715
...
Fixes #8715 : eliminates duplicates when used in many-to-many field constraints
2022-03-07 09:27:14 -05:00
jeremystretch
6423b386d2
Closes #8758 : Allow empty string substitution when renaming objects in bulk
2022-03-04 13:30:32 -05:00
seros1521
90257e9dee
Fixes #8715 : eliminates duplicates when used in many-to-many field constraints
...
When using permissions that use tags, a user may receive multiple permissions
of the same type if multiple tags are assigned to the device. This causes the
RestrictedQuerySet class to generate a query similar to this:
>>> dcim.models.Device.objects.filter(Q(tags__name='tag1')|Q(tags__name='tag2'))
<ConfigContextModelQuerySet [<Device: device1>, <Device: device1>]>
This query returns the same object twice if both tags are assigned to it. This
is due to the use of the django-taggit library. The library's documentation
describes this behavior as expected and suggests using an explicit distinct()
call in queries to avoid duplicates.
However, the use of DISTINCT in queries has a global side effect -
deduplication of responses, which may or may not be acceptable behavior
(depending on further use). Since it is not known how RestrictedQuerySet will
be used in the rest of the code, it was decided to dedupe using a subquery.
2022-03-04 14:37:05 +07:00
jeremystretch
21e3159711
Hide table checkboxes when no bulk actions are enabled
2022-03-02 16:13:59 -05:00
jeremystretch
5f8af6ad66
Closes #8779 : Enable the use of ChoiceSet by plugins
2022-03-02 11:43:28 -05:00
Peter Eckel
4dc428d75b
Closes #8764 : Correct the endpoint for plugin API view names
2022-03-01 13:11:49 +01:00
jeremystretch
d6c272cfd6
Fixes #8764 : Correct view name resolution for dynamic form fields
2022-02-28 15:17:49 -05:00
jeremystretch
6604ebfd01
Fix tag background color
2022-02-22 13:10:04 -05:00
jeremystretch
d9696ae34c
Fixes #8714 : Remove label from comments form field
2022-02-22 10:47:02 -05:00
jeremystretch
aa85ae89c1
Merge v3.1.8
2022-02-15 10:05:07 -05:00
Jeremy Stretch
c0a62793c4
Merge pull request #8441 from seulsale/8391-install-date-null
...
Fixes #8391 : Install date should appear empty when exported
2022-02-14 10:32:56 -05:00
Sergio Saucedo
f80452c7d9
Update import order
2022-02-14 00:47:48 -06:00
Sergio Saucedo
611f1b57dd
Implement custom DateTimeColumn improving null values handling
2022-02-14 00:44:50 -06:00
jeremystretch
e1ef911d40
#8564 : Fix deepmerge logic to allow nullifying dicts
2022-02-11 15:22:50 -05:00
jeremystretch
1319b62acb
Standardize on get_FOO_color() method for returning ChoiceField colors
2022-02-11 14:25:13 -05:00
jeremystretch
7c105019d8
Closes #8600 : Document built-in template tags & filters
2022-02-09 16:01:58 -05:00
jeremystretch
10e6ae2094
Introduce get_viewname() as a standard utility
2022-02-09 13:47:12 -05:00
jeremystretch
272d6e7437
Closes #8463 : Change the created field on all change-logged models from date to datetime
2022-02-08 14:41:44 -05:00
Sergio Saucedo
8fc605037a
Implement custom DateColumn improving null values handling
2022-02-08 01:26:26 -06:00
Jeremy Stretch
733a9bb2e1
Merge pull request #8510 from netbox-community/8032-django-40
...
Closes #8032 : Upgrade to Django 4.0
2022-02-07 11:47:38 -05:00
jeremystretch
ac1c0b0715
#8054 : Allow replacing default static choices
2022-02-03 13:52:42 -05:00
jeremystretch
630ff2abb4
Remove dependency on is_safe_url()
2022-02-03 12:58:54 -05:00
jeremystretch
478eefb74c
Merge v3.1.7
2022-02-03 12:55:34 -05:00
jeremystretch
24f48b11e6
Closes #8530 : Indicate CSV or YAML as format for "all data" export
2022-02-03 10:22:38 -05:00
jeremystretch
db3f478598
Closes #8517 : Render boolean custom fields as icons in object tables
2022-02-02 16:24:51 -05:00
jeremystretch
e20ac803f3
Fixes #8498 : Fix display of selected content type filters in object list views
2022-02-02 16:08:12 -05:00
jeremystretch
3621b1a0d0
Set model as attribute on bulk edit forms
2022-02-01 11:00:18 -05:00
jeremystretch
d1672f8818
Move nullable_fields out of Meta for bulk edit forms
2022-01-31 16:15:40 -05:00
jeremystretch
cf3ca5a661
Refactor & document supported form fields
2022-01-31 14:10:13 -05:00
jeremystretch
e4eee1cdfc
Clean up nullable fields declaration for bulk edit forms
2022-01-28 16:47:54 -05:00
jeremystretch
75aa1c7b80
Merge feature
2022-01-27 16:38:36 -05:00
jeremystretch
59d3f5c4ea
Split out NetBoxTable from BaseTable
2022-01-27 16:00:38 -05:00
jeremystretch
4a1b4e0485
Closes #8469 : Move BaseTable, columns to netbox core app
2022-01-27 15:00:10 -05:00
jeremystretch
38963e7960
Fixes #8377 : Fix calculation of absolute cable lengths when specified in fractional units
2022-01-18 11:09:12 -05:00
jeremystretch
3e3880823b
Merge v3.1.6
2022-01-17 11:12:54 -05:00
jeremystretch
2b31154834
Fixes #8358 : Fix inconsistent styling of custom fields on filter & bulk edit forms
2022-01-14 14:23:58 -05:00
jeremystretch
b07a7ba9bc
Fix display of custom object fields within tables
2022-01-12 17:07:54 -05:00
jeremystretch
c8713d94d8
Merge branch 'develop' into feature
2022-01-11 16:16:13 -05:00
jeremystretch
b584f09223
Fixes #8319 : Custom URL fields should honor ALLOWED_URL_SCHEMES config parameter
2022-01-11 15:32:04 -05:00
jeremystretch
7421e5f7d7
Fixes #8317 : Fix CSV import of multi-select custom field values
2022-01-11 14:52:47 -05:00
jeremystretch
21e0e6e495
Closes #6954 : Remember users' table ordering preferences
2022-01-10 14:03:07 -05:00
jeremystretch
72e17914e2
Closes #8296 : Allow disabling custom links
2022-01-10 12:11:37 -05:00
jeremystretch
aed23d61fc
Replace ButtonsColumn with ActionsColumn
2022-01-10 11:17:40 -05:00
jeremystretch
076ca46ab4
Closes #8302 : Linkify role column in device & VM tables
2022-01-10 09:48:14 -05:00
jeremystretch
8b07fbc554
Allow passing additional columns & specifying a sequence
2022-01-07 11:56:18 -05:00
jeremystretch
bff7400de4
Convert ActionsMenuItem to dataclass
2022-01-07 11:23:04 -05:00
jeremystretch
ededa69e4a
Only show relevant links for user permissions
2022-01-07 10:53:00 -05:00