bitsof / selecto

1 stars 0 forks source link

Add Field in Review Object #106

Open jeffery-do opened 1 year ago

jeffery-do commented 1 year ago

Currently, we have this. https://github.com/bitsof/selecto/blob/943275b87b7485be3d0aa202a33ac20f273eef4e/web/selecto/products/models.py#L20C3-L22

    review_content = models.CharField(max_length=3000)
    review_related_product = models.ForeignKey(Product, on_delete=models.CASCADE)
    review_publish_date = models.DateTimeField()

A review Object should have these fields at least:

name: "TonyR"
date: "August 15, 2013"
rating: "5/5"
title: "Once a Jansport always a Jansport"
text: : "I bought this product to replace my older Big Student Jansport backpack that I've had since 2006. That's 7 years now! My older backpack was used heavily during this time in all weather conditions. It's gone through rain/sleet/snow/100+ heat and -20F temps and hasn't faded. It can sure fit everything you need in there. While my old big student backpack could keep going, I think that after so many years of use it would be a good idea to replace. The bottom part of the bag is getting real thin, mostly because of setting it down on hard concrete a lot.
jeffery-do commented 1 year ago

The DateTimeField should also be in a format which can easily be inputted. I would like it to be defautled to a sane value, but it is weird that both a date and a time needs to be filled. image