django-vote icon indicating copy to clipboard operation
django-vote copied to clipboard

Using update_at field instead of create_at

Open YemreGurses opened this issue 6 years ago • 3 comments

Hi, If a user changes his/her vote, it's create time does not change. Is it more sense to use update_at instead of create_at?

YemreGurses avatar Oct 07 '19 08:10 YemreGurses

Hi @YemreGurses , create_at is used to store the DateTime when the user first time voted. And update_at will be changed each time the user change his/her vote. Both create_at and update_at has their own features. And i think it is good to use update_at and create_at separately.

Gilbishkosma avatar Feb 08 '20 10:02 Gilbishkosma

Yea, thats better. My point was storing changed vote time and django-vote does not have that feature afaik.

YemreGurses avatar Jun 10 '20 11:06 YemreGurses

@YemreGurses In the beginning, this project doesn't support down vote, so one's vote record either exists with a created_at or been deleted. Since version 2.1.4 which down vote was supported, that's when one can update his/her vote record. So yes, that's one feature that can be added to this project.

shellfly avatar Jun 10 '20 13:06 shellfly