Add support for favorite logging
Opened this issue · 0 comments
otiala commented
- Create a new
TimestampedModel
forHobbyFavorite
:
hobby
(fk)count
(int)
- Add attribute
favorite_count
(int) for modelHobby
.
- Handle increment of
favorite_count
the way it is handled inBenefit
andPromotion
- Add API endpoints for
HobbyFavorite
.
- Validate
count
in serializer to only allow 1 or -1 value.