Jeremy Stretch
01ee9c87b8
Update ObjectPermission.object_types to reference ObjectType
2024-03-04 09:52:45 -05:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
Jeremy Stretch
c6a3fc2407
#12795 : Introduce a custom Group model ( #15304 )
...
* Rename sequences & indexes after renaming users table
* Migrate from auth.Group to a custom group model
* Delete original groups from auth_group table
* Update object & multi-object custom fields referencing the Group model
* Fix ContentType resolution
* Clean up obsolete logic for view/serializer resolution
2024-03-04 08:29:53 -05:00
Arthur Hanson
317bef6796
12795 custom user model ( #15005 )
...
* 12795 users.User migration
* 12795 users.User migration
* 12795 review changes
* 12795 fix user model registration
* 12795 fix user model registration
* 12795 update migration
* 12795 update migration
* 12795 update migration
* 12795 add comment to migration db_table
* Tweak import to avoid class name collision
* 12795 add comment for _register_features requirement
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-02-05 13:24:03 -05:00
Jeremy Stretch
25e67eb555
Merge branch 'develop' into feature
2023-12-15 16:52:42 -05:00
Daniel Sheppard
8a4233aca1
Update create_userconfig to receive signals from NetBoxUser model in addition to User model.
2023-12-14 17:07:57 -05:00
Jeremy Stretch
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
Jeremy Stretch
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
Jeremy Stretch
c4e765c4a8
Closes #14141 : translation cleanup ( #14143 )
...
* Translations cleanup
* Tweak variable names; misc string cleanup
* Misc cleanup
2023-10-30 13:38:03 -04:00
Jeremy Stretch
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
Jeremy Stretch
79030ecab2
#12589 : Move username validation from form to NetBoxUser
2023-08-01 15:42:47 -04:00
Jeremy Stretch
34a960505d
Remove obsolete AdminGroup and AdminUser models ( #12589 )
2023-07-31 14:28:50 -04:00
Arthur Hanson
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
Jeremy Stretch
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
Jeremy Stretch
9b6e32896d
Clean up users & account URLs
2023-07-25 15:48:40 -04:00
Arthur Hanson
7600d7b344
Closes #13228 : Move token management views to primary UI
2023-07-25 13:43:40 -04:00
Arthur Hanson
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
Jeremy Stretch
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
Arthur
6eba5d4d96
10300 initial translation support use gettext
2022-11-11 08:47:29 -05:00
Arthur Hanson
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
Jeremy Stretch
cfb9605e9b
Merge branch 'feature' into issue_9536
2022-06-23 10:35:27 -04:00
jeremystretch
3c15419bd0
Introduce IPNetworkSerializer to serialize allowed token IPs
2022-06-22 21:51:43 -04:00
jeremystretch
a38a880e67
Refactor source IP resolution logic
2022-06-22 17:01:07 -04:00
PieterL75
536239d272
Merge branch 'feature' into issue_8233
2022-06-17 16:31:13 +02:00
Pieter Lambrecht
c04b4bbbfa
Add last_used to Token model and update when used
2022-06-17 14:45:56 +02:00
Pieter Lambrecht
2587720298
Fix 8878: Restrict API key usage by Source IP
2022-04-19 14:44:35 +02:00
jeremystretch
1636508a6a
Fixes #9156 : Fix loading UserConfig data from fixtures
2022-04-18 08:36:41 -04:00
jeremystretch
e4abbfb2c6
Closes #8454 : Set DEFAULT_AUTO_FIELD to BigAutoField
2022-01-25 17:37:06 -05:00
jeremystretch
7343ae7339
Fix invalid key retrieval
2021-12-22 10:45:21 -05:00
jeremystretch
cb6342c874
Reference DEFAULT_USER_PREFERENCES for undefined preferences
2021-12-22 10:13:08 -05:00
jeremystretch
1eeac7f4f4
Introduce DEFAULT_USER_PREFERENCES dynamic config setting
2021-12-21 20:30:59 -05:00
jeremystretch
34aa231436
Closes #6899 : Add filterset tests for Token
2021-08-06 09:41:49 -04:00
jeremystretch
48b4bf1683
Initial work on REST API endpoint for tokens
2021-06-11 15:14:19 -04:00
jeremystretch
1e02bb5999
Fixes #6064 : Fix object permission assignments for user and group models
2021-05-28 13:27:05 -04:00
Jeremy Stretch
d82f2e289a
Use ContentTypeChoiceField for all ContentType fields
2021-04-02 10:55:16 -04:00
Jeremy Stretch
7e6cb9d186
Closes #1638 : Migrate all primary keys to 64-bit integers
2021-02-26 16:12:52 -05:00
Jeremy Stretch
bec7ea7072
Standardize model types based on function
2021-02-24 21:01:16 -05:00
Jeremy Stretch
aca3ca9d65
Simplify the aggregation of constraint sets
2020-08-07 14:09:55 -04:00
Jeremy Stretch
053c600b67
Closes #4943 : Add a 'description' field to ObjectPermission
2020-08-03 16:37:37 -04:00
Jeremy Stretch
ce2dada9fd
Closes #4942 : Make ObjectPermission's 'name' field required
2020-08-03 16:10:51 -04:00
Jeremy Stretch
55ee3db5bc
#4919 : Allow adding/changing assigned permissions within group and user admin views
2020-07-29 12:12:00 -04:00
Jeremy Stretch
7cdb0cf560
Allow the assignment of ObjectPermissions to users, groups, and permissions
2020-07-22 15:25:06 -04:00
Jeremy Stretch
21a750e8ec
Change Postgres-specific JSONField to stock Django field
2020-07-16 12:02:49 -04:00
Jeremy Stretch
fac0da224a
Add name, enabled fields to ObjectPermission
2020-07-08 13:44:19 -04:00
Jeremy Stretch
2c354c7f86
Fix automatic creation of UserConfig for user created via admin UI
2020-06-26 14:29:24 -04:00
Jeremy Stretch
62224857f0
Standardize ObjectPermissionTest
2020-06-08 14:01:15 -04:00
Jeremy Stretch
3084d58da1
Add REST API endpoint for ObjectPermissions
2020-06-03 13:08:04 -04:00
Jeremy Stretch
d157818d7e
Rename attrs to constraints
2020-06-03 09:43:46 -04:00
Jeremy Stretch
ddcd172af1
Rename content_types to object_types
2020-06-03 09:27:20 -04:00
Jeremy Stretch
a62b98ac50
Admin UI improvements
2020-06-02 13:21:58 -04:00