This feature adds a new field "interests" to the Space model, which represents various interests that are associated with a particular space. Each space can have multiple interests, and each interest can be associated with multiple spaces.
This will allow us to filter spaces based on a user's interests and make space recommendations accordingly.
Brief of the changes made:
Added a ManyToMany relationship between Space and Interest models.
Updated the my_spaces_list view to handle form submissions for selecting an interest.
Updated the my_spaces_list.html template to include a form for interest selection.
Added error handling to account for cases where a selected interest does not exist.
Description:
This feature adds a new field "interests" to the Space model, which represents various interests that are associated with a particular space. Each space can have multiple interests, and each interest can be associated with multiple spaces.
This will allow us to filter spaces based on a user's interests and make space recommendations accordingly.
Brief of the changes made:
Added a ManyToMany relationship between Space and Interest models. Updated the my_spaces_list view to handle form submissions for selecting an interest. Updated the my_spaces_list.html template to include a form for interest selection. Added error handling to account for cases where a selected interest does not exist.