PrivatePing is a secure messaging application built on Python's Django framework, providing end-to-end encryption for messages exchanged between users.
This pull request introduces custom admin configurations for the UserProfile, Friends, and Keys models. These changes enhance the usability and functionality of the admin interface by providing better search, filter, and display options.
Changes Made:
UserProfileAdmin:
Added list_display to show username, name, online, and online_for.
Configured search_fields to enable searching by username and name.
Set up list_filter for online and online_for fields.
Enabled autocomplete_fields for the user field.
FriendsAdmin:
Added list_display to show user, friend, and accepted.
Configured search_fields to enable searching by user__username and friend__username.
Set up list_filter for the accepted field.
Enabled autocomplete_fields for the user and friend fields.
KeysAdmin:
Added list_display to show user and public_key.
Configured search_fields to enable searching by user__username.
Enabled autocomplete_fields for the user field.
Testing
Verified that the custom admin configurations for UserProfile, Friends, and Keys models work as expected.
Ensured that search, filter, and display functionalities are operating correctly.
Additional Notes:
These changes improve the admin interface by providing clearer information and easier management of the UserProfile, Friends, and Keys models.
Summary:
This pull request introduces custom admin configurations for the
UserProfile
,Friends
, andKeys
models. These changes enhance the usability and functionality of the admin interface by providing better search, filter, and display options.Changes Made:
list_display
to showusername
,name
,online
, andonline_for
.search_fields
to enable searching byusername
andname
.list_filter
foronline
andonline_for
fields.autocomplete_fields
for theuser
field.list_display
to showuser
,friend
, andaccepted
.search_fields
to enable searching byuser__username
andfriend__username
.list_filter
for theaccepted
field.autocomplete_fields
for theuser
andfriend fields
.list_display
to showuser
andpublic_key
.search_fields
to enable searching byuser__username
.autocomplete_fields
for theuser
field.Testing
UserProfile
,Friends
, andKeys
models work as expected.Additional Notes:
UserProfile
,Friends
, andKeys
models.Thank you for reviewing this pull request!