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
6423b386d2
Closes #8758 : Allow empty string substitution when renaming objects in bulk
2022-03-04 13:30:32 -05:00
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
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
f80452c7d9
Update import order
2022-02-14 00:47:48 -06:00
611f1b57dd
Implement custom DateTimeColumn improving null values handling
2022-02-14 00:44:50 -06:00
e1ef911d40
#8564 : Fix deepmerge logic to allow nullifying dicts
2022-02-11 15:22:50 -05:00
8fc605037a
Implement custom DateColumn improving null values handling
2022-02-08 01:26:26 -06:00
24f48b11e6
Closes #8530 : Indicate CSV or YAML as format for "all data" export
2022-02-03 10:22:38 -05:00
db3f478598
Closes #8517 : Render boolean custom fields as icons in object tables
2022-02-02 16:24:51 -05:00
e20ac803f3
Fixes #8498 : Fix display of selected content type filters in object list views
2022-02-02 16:08:12 -05:00
38963e7960
Fixes #8377 : Fix calculation of absolute cable lengths when specified in fractional units
2022-01-18 11:09:12 -05:00
2b31154834
Fixes #8358 : Fix inconsistent styling of custom fields on filter & bulk edit forms
2022-01-14 14:23:58 -05:00
b584f09223
Fixes #8319 : Custom URL fields should honor ALLOWED_URL_SCHEMES config parameter
2022-01-11 15:32:04 -05:00
7421e5f7d7
Fixes #8317 : Fix CSV import of multi-select custom field values
2022-01-11 14:52:47 -05:00
076ca46ab4
Closes #8302 : Linkify role column in device & VM tables
2022-01-10 09:48:14 -05:00
443b4ccc57
Initial work on #8231
2022-01-05 14:06:56 -05:00
662cafe416
Form widgets & style cleanup
2022-01-04 15:01:16 -05:00
6cda55da06
Fixes #8187 : Fix rendering of tags column in object tables
2021-12-30 09:41:35 -05:00
82a0240d2e
Closes #8182 : Introduce checkmark template tag
2021-12-29 10:26:42 -05:00
9c9fcaf42f
Fixes #7290 : Defer loading API-backed form fields
2021-12-29 09:30:43 -05:00
9dafb36c88
Introduce CustomLinkColumn
2021-12-22 20:56:11 -05:00
f369b5f588
Reorganize & clean up templatetag templates
2021-12-22 15:05:24 -05:00
063abc8ef7
Merge pull request #8153 from davama/develop
...
Add missing HTTP_X_FORWARDED_FOR
2021-12-22 12:46:22 -05:00
d275538116
Changelog & cleanup for #7246 , #8097
2021-12-21 11:53:31 -05:00
853a52f3ca
Merge branch 'develop' into fix-8097
2021-12-21 11:37:58 -05:00
57a78b3cad
Clean up device/devicetype tab views
2021-12-21 10:28:28 -05:00
3a54ecb522
Fix #8097 : Re-fix markdown table rendering
2021-12-20 23:31:24 +01:00
e12da72615
Fixes #8101 : Preserve return URL when using "create and add another" button
2021-12-20 13:41:22 -05:00
7735a539e9
Fixes #8088 : Improve legibility of text in labels with light-colored backgrounds
2021-12-16 12:44:18 -05:00
fd785fc9a5
Move speed select dropdown menu to widget template
2021-12-16 08:41:43 -05:00
91f33d3289
#8057 : Enable dynamic tables for object list views
2021-12-13 16:51:59 -05:00
ee6e2e0af1
Fixes #7690 : Fix custom field integer support for MultiValueNumberFilter
2021-12-10 16:34:38 -05:00
58095e1916
Fixes #8038 : Placeholder filter should display zero integer values
2021-12-10 15:38:51 -05:00
1df05715c2
Fixes #8033 : Fix display of zero values for custom integer fields in tables
2021-12-09 14:56:12 -05:00
f94c1e91ea
Merge branch 'develop' into feature
2021-12-06 12:10:31 -05:00
40c6b172f7
Fixes #7981 : Fix Markdown sanitization regex
2021-12-06 11:33:00 -05:00
68f322a03b
Closes #7925 : Linkify contact phone and email attributes
2021-12-03 10:51:24 -05:00
870aa3a265
Merge branch 'develop' into feature
2021-11-24 14:00:37 -05:00
c9b00891ed
Merge pull request #7861 from netbox-community/7657-threadsafe-changelog
...
Fixes #7657 : Make request/webhook caching thread-safe
2021-11-24 09:06:48 -05:00
038d7e0fa6
Add missing HTTP_X_FORWARDED_FOR
...
See discussion [here](https://github.com/netbox-community/netbox/discussions/7876 ) for background.
From the [doc](https://netbox.readthedocs.io/en/stable/customization/custom-scripts/ ) i should be able to access `META.HTTP_X_FORWARDED_FOR` but i was not able to since they were not being sent downstream
2021-11-19 15:20:00 -05:00
b7c9ca720a
Closes #7886 : Introduce a base FilterForm class
2021-11-19 15:12:45 -05:00
55049bb303
Apply BootstrapMixin to BulkEditForm
2021-11-18 16:23:26 -05:00
c210c6937b
Apply BootstrapMixin to CustomFieldModelForm
2021-11-18 16:19:25 -05:00
f16c6d81cf
Merge branch 'develop' into feature
2021-11-18 11:06:54 -05:00
6a369ac985
Closes #7531 : Add Markdown support for strikethrough formatting
2021-11-17 16:50:23 -05:00
0d60099588
Move request object and webhook queue to TLS
2021-11-17 15:12:19 -05:00
9de179cba8
Closes #7858 : Standardize the representation of content types across import & export functions
2021-11-17 11:02:22 -05:00
500f213c6b
Fix erroneous merge resolution
2021-11-12 09:29:55 -05:00
cede27b5fe
Merge branch 'develop' into feature
2021-11-12 09:09:15 -05:00