Files
AdventureLog/backend/server/integrations/admin.py
Sean Morley 36631886a2 Add Wanderer author fields and enhance integration with API key authentication
- Introduced `wanderer_author_username` and `wanderer_author_domain` fields to the Trail model for better integration with the Wanderer API.
- Updated TrailSerializer to include new fields and ensure proper backfilling of author information from the Wanderer API.
- Enhanced import/export functionality to handle new author fields for backward compatibility.
- Migrated Wanderer integration to use API key authentication, removing username and token fields for improved security.
- Updated documentation to reflect changes in the Wanderer integration setup and usage.
- Added utility functions for handling GeoJSON data from GPX files and improved error handling in related services.
- Refactored views and serializers to accommodate the new integration structure and ensure seamless user experience.
2026-06-01 20:08:20 -04:00

18 lines
480 B
Python

from django.contrib import admin
from allauth.account.decorators import secure_admin_login
from .models import ImmichIntegration, StravaToken, WandererIntegration
admin.autodiscover()
admin.site.login = secure_admin_login(admin.site.login)
@admin.register(WandererIntegration)
class WandererIntegrationAdmin(admin.ModelAdmin):
list_display = ('user', 'server_url', 'id')
exclude = ('api_key',)
admin.site.register(ImmichIntegration)
admin.site.register(StravaToken)