meow
meow copied to clipboard
Themechanging
Frontend: Added theme creation and edit modals to create new color themes Added new functions in the api.js file is add/edit/delete/favorite themes to the back-end endpoints
Backend: Added new functions in view.py of UserProfiles to add, create and delete user themes Also added a many-to-many field in themes called favorite_theme so users can add their favorite themes Added a signal function to update the "favorite count" each time the many to many relation is changed Modified the existing me function that deals with theme change so as to support multiple themes
Testing Note: Test with multiple users to check if the many to many relations work Check that each user can only have themes that have unique names -do this for theme add and theme edit functions