I have a django project and I am using tastypie to turn my app into a REST based API.
I let users upload photographs and then other registered users can like them. I want to prevent a single from liking a photo more than once.
I know that using views or tastypie specific code I could add functionality to check if a user has already like a photograph and if they have then not increment the count. But I was wondering if there is a way to do this check within the model (and if that is good or bad)
Thanks