Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pictures for Wikimedia projects #48

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

albertoleoncio
Copy link
Member

This pull request adds a new feature to manage Wikimedia projects within the application. The changes include updates to the URL routing, database migrations, serializers, models, and views to support this feature.

Additions to Wikimedia project management:

  • CapX/urls.py: Registered the WikimediaProjectViewSet with the router to handle requests for Wikimedia projects. [1] [2]
  • users/migrations/0014_wikimediaproject_wikimedia_project_picture.py: Created a migration to add the wikimedia_project_picture field to the WikimediaProject model and populated it with appropriate logos based on the project code.
  • users/serializers.py: Updated the WikimediaProjectSerializer to include the wikimedia_project_picture field.
  • users/submodels.py: Added the wikimedia_project_picture field to the WikimediaProject model to store the URL of the project's picture.
  • users/views.py: Created the WikimediaProjectViewSet to provide read-only access to Wikimedia projects, including list and retrieve endpoints with extended schema descriptions.

@albertoleoncio albertoleoncio linked an issue Jan 11, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pictures for Wikimedia projects
1 participant