mercredi 4 mars 2015

django object saving differs in sqlite in development and mysql in production

In my view I am saving or say updating object like this :



Notification.objects.filter(id=self.npk, body=q, viewed=False).update(viewed=True)


Its working in the development. Its turning the notifications to viewed but in production its not.


In development I have used sqlite3 and in production I used mysql..


Whats the problem ??


Aucun commentaire:

Enregistrer un commentaire