Skip to content

extension model and form validation #2177

@mattiagiupponi

Description

@mattiagiupponi

Description

The idea is to introduce a new feature for managing MapStore extensions directly from the GeoNode Django admin interface. It allows administrators to upload, update, configure, and delete extensions without needing to manually manage static files.

Key Changes

  • Extension Model: A new Django model stores extension metadata, including its name, status, and file path.
  • Django Admin Interface: A user-friendly admin panel is added for full CRUD (Create, Read, Update, Delete) management of the extensions.
  • Automated File Handling: Uses Django signals (post_save, post_delete) to automatically unzip uploaded archives into the static directory and clean them up upon deletion.
  • A custom admin form (ExtensionAdminForm) provides user-friendly validation to prevent uploading extensions with duplicate names.

Screenshots

Django Admin View with the error message showing the duplicate name
image

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions