1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

81 Commits

Author SHA1 Message Date
25e67eb555 Merge branch 'develop' into feature 2023-12-15 16:52:42 -05:00
8a4233aca1 Update create_userconfig to receive signals from NetBoxUser model in addition to User model. 2023-12-14 17:07:57 -05:00
e15647a2ce Closes #14153: Filter ContentTypes by supported feature (#14191)
* WIP

* Remove FeatureQuery

* Standardize use of proxy ContentType for models

* Remove TODO

* Correctly filter BookmarksWidget object_types choices

* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
8dcbd66de6 Closes #13427: Public model registration (#14152)
* Initial work on #13427

* Clarify documentation

* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
c4e765c4a8 Closes #14141: translation cleanup (#14143)
* Translations cleanup

* Tweak variable names; misc string cleanup

* Misc cleanup
2023-10-30 13:38:03 -04:00
caedc8dbe3 Closes #13352: Translation support for model verbose names (#13354)
* Update verbose_name & verbose_name_plural Meta attributes on all models

* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
2023-08-03 10:41:10 -04:00
79030ecab2 #12589: Move username validation from form to NetBoxUser 2023-08-01 15:42:47 -04:00
34a960505d Remove obsolete AdminGroup and AdminUser models (#12589) 2023-07-31 14:28:50 -04:00
83bebc1bd2 Closes #13132: Wrap verbose_name and other model text with gettext_lazy() (i18n)
---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 11:28:07 -04:00
80376abedf Closes #13309: Introduce the account app (#13310)
* Introduce 'accounts' app for user-specific views & resources
* Move UserTokenTable to account app
* Move login & logout views to account app
2023-07-31 09:22:04 -04:00
9b6e32896d Clean up users & account URLs 2023-07-25 15:48:40 -04:00
7600d7b344 Closes #13228: Move token management views to primary UI 2023-07-25 13:43:40 -04:00
a4acb50edd 12589 move user and group admin from admin (#12877)
Move admin views for users, groups, and object permissions from the admin site to the NetBox frontend

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-20 16:22:08 -04:00
084a2cc52c Closes #9416: Dashboard widgets (#11823)
* Replace masonry with gridstack

* Initial work on dashboard widgets

* Implement function to save dashboard layout

* Define a default dashboard

* Clean up widgets

* Implement widget configuration views & forms

* Permit merging dict value with existing dict in user config

* Add widget deletion view

* Enable HTMX for widget configuration

* Implement view to add dashboard widgets

* ObjectCountsWidget: Identify models by app_label & name

* Add color customization to dashboard widgets

* Introduce Dashboard model to store user dashboard layout & config

* Clean up utility functions

* Remove hard-coded API URL

* Use fixed grid cell height

* Add modal close button

* Clean up dashboard views

* Rebuild JS
2023-02-24 16:04:00 -05:00
6eba5d4d96 10300 initial translation support use gettext 2022-11-11 08:47:29 -05:00
816fedb78d 8853 Prevent the retrieval of API tokens after creation (#10645)
* 8853 hide api token

* 8853 hide key on edit

* 8853 add key display

* 8853 cleanup html

* 8853 make token view accessible only once on POST

* Clean up display of tokens in views

* Honor ALLOW_TOKEN_RETRIEVAL in API serializer

* Add docs & tweak default setting

* Include token key when provisioning with user credentials

Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-11-02 12:45:00 -04:00
cfb9605e9b Merge branch 'feature' into issue_9536 2022-06-23 10:35:27 -04:00
3c15419bd0 Introduce IPNetworkSerializer to serialize allowed token IPs 2022-06-22 21:51:43 -04:00
a38a880e67 Refactor source IP resolution logic 2022-06-22 17:01:07 -04:00
536239d272 Merge branch 'feature' into issue_8233 2022-06-17 16:31:13 +02:00
c04b4bbbfa Add last_used to Token model and update when used 2022-06-17 14:45:56 +02:00
2587720298 Fix 8878: Restrict API key usage by Source IP 2022-04-19 14:44:35 +02:00
1636508a6a Fixes #9156: Fix loading UserConfig data from fixtures 2022-04-18 08:36:41 -04:00
e4abbfb2c6 Closes #8454: Set DEFAULT_AUTO_FIELD to BigAutoField 2022-01-25 17:37:06 -05:00
7343ae7339 Fix invalid key retrieval 2021-12-22 10:45:21 -05:00
cb6342c874 Reference DEFAULT_USER_PREFERENCES for undefined preferences 2021-12-22 10:13:08 -05:00
1eeac7f4f4 Introduce DEFAULT_USER_PREFERENCES dynamic config setting 2021-12-21 20:30:59 -05:00
34aa231436 Closes #6899: Add filterset tests for Token 2021-08-06 09:41:49 -04:00
48b4bf1683 Initial work on REST API endpoint for tokens 2021-06-11 15:14:19 -04:00
1e02bb5999 Fixes #6064: Fix object permission assignments for user and group models 2021-05-28 13:27:05 -04:00
d82f2e289a Use ContentTypeChoiceField for all ContentType fields 2021-04-02 10:55:16 -04:00
7e6cb9d186 Closes #1638: Migrate all primary keys to 64-bit integers 2021-02-26 16:12:52 -05:00
bec7ea7072 Standardize model types based on function 2021-02-24 21:01:16 -05:00
aca3ca9d65 Simplify the aggregation of constraint sets 2020-08-07 14:09:55 -04:00
053c600b67 Closes #4943: Add a 'description' field to ObjectPermission 2020-08-03 16:37:37 -04:00
ce2dada9fd Closes #4942: Make ObjectPermission's 'name' field required 2020-08-03 16:10:51 -04:00
55ee3db5bc #4919: Allow adding/changing assigned permissions within group and user admin views 2020-07-29 12:12:00 -04:00
7cdb0cf560 Allow the assignment of ObjectPermissions to users, groups, and permissions 2020-07-22 15:25:06 -04:00
21a750e8ec Change Postgres-specific JSONField to stock Django field 2020-07-16 12:02:49 -04:00
fac0da224a Add name, enabled fields to ObjectPermission 2020-07-08 13:44:19 -04:00
2c354c7f86 Fix automatic creation of UserConfig for user created via admin UI 2020-06-26 14:29:24 -04:00
62224857f0 Standardize ObjectPermissionTest 2020-06-08 14:01:15 -04:00
3084d58da1 Add REST API endpoint for ObjectPermissions 2020-06-03 13:08:04 -04:00
d157818d7e Rename attrs to constraints 2020-06-03 09:43:46 -04:00
ddcd172af1 Rename content_types to object_types 2020-06-03 09:27:20 -04:00
a62b98ac50 Admin UI improvements 2020-06-02 13:21:58 -04:00
02687453f2 Add ArrayField on ObjectPermission to store actions 2020-05-29 11:25:13 -04:00
90828cedae Introduce proxy models for User and Group to organize admin UI 2020-05-29 10:43:12 -04:00
f65b2278f0 Enable many-to-many model assignment for ObjectPermissions 2020-05-28 15:04:46 -04:00
bdfc0364d5 Fix up ObjectPermission content type assignment 2020-05-28 14:20:18 -04:00