Skip to content

Issue #3 - Added events app: models, serializers, viewsets, and added region field for individual events - #31

Open
jordansingarajah wants to merge 2 commits into
mainfrom
issue-3-events-backend
Open

Issue #3 - Added events app: models, serializers, viewsets, and added region field for individual events#31
jordansingarajah wants to merge 2 commits into
mainfrom
issue-3-events-backend

Conversation

@jordansingarajah

@jordansingarajah jordansingarajah commented Jul 7, 2026

Copy link
Copy Markdown

Change Summary

Implements the Django backend for the Events page: 'Event' and 'EventInstance' models,
serializers (with nested instances), viewsets, URL routing, and region/date parameter filtering.

Change Form

Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

  • [✅] The pull request title has an issue number
  • [✅] The change works by "Smoke testing" or quick testing
  • The change has tests
    • No automated tests yet, only manual smoke testing for now.
  • The change has documentation
    • No separate docs written

Other Information

  • 'cover_image' field in the Event model is a CharField storing a relative path (not 'URLField'), since images
    are uploaded directly to the frontend (/public/) rather than hosted externally
  • 'region' field added to the EventInstance model, which is a plain CharField with no fixed choices, per client's scalability
    preference - new regions can be added in the future
  • branch name renamed to avoid frontend/backend overlap

Related issue

@jordansingarajah jordansingarajah changed the title Add events app: models, serializers, viewsets, and added region field for individual events Added events app: models, serializers, viewsets, and added region field for individual events Jul 8, 2026
@jordansingarajah jordansingarajah changed the title Added events app: models, serializers, viewsets, and added region field for individual events Issue #3 - Added events app: models, serializers, viewsets, and added region field for individual events Jul 10, 2026
@KKatariah

Copy link
Copy Markdown
Contributor

Flake8 tests are failing.

Warning: server/api/events/admin.py:5:35: W292 no newline at end of file
Error: server/api/events/tests.py:1:1: F401 'django.test.TestCase' imported but unused
Error: The process '/opt/hostedtoolcache/Python/3.12.13/x64/bin/flake8' failed with exit code 1

@Jason-CJS Jason-CJS added the priority look into these ASAP label Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority look into these ASAP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Events Page

3 participants