Re: Help regarding view modification

2018-08-22 Thread Olivier Pons
Try this: upvotes = models.IntegerField(blank=True, default=0) downvotes = models.IntegerField(blank=True, default=0) (dont forget the makemigrations, then migrate) tell me if it worked Le mercredi 22 août 2018 09:25:20 UTC+2, Sagar a écrit : > > Hi guys, > I am working on project in which admin

Re: Help regarding view modification

2018-08-22 Thread Olivier Pons
Hi, You should try this: upvotes = models.IntegerField(blank=True, default=0) downvotes = models.IntegerField(blank=True, default=0) (dont forget the makemigrations, then migrate) tell me if it worked Le mer. 22 août 2018 à 09:25, Sagar a écrit : > Hi guys, > I am working on project in which

Help regarding view modification

2018-08-22 Thread Sagar
Hi guys, I am working on project in which admin will post news and users will able to give up-votes, down-votes and comments. I'm storing data in MongoDB. I'm trying to store comments inside it's parent news documents. I'm facing some trouble with views. Look at the my code and below that I expl