Re: Django annotation and Implementation for group by every two hours

2017-07-11 Thread Adam Johnson
Hi, this is the wrong list for questions about using Django, the right list for that is https://groups.google.com/forum/#!forum/django-users . This list is for discussing the development of Django itself. On 10 July 2017 at 17:15, kanhaiya yadav wrote: > Enter code here... > > Hi, > > I have a m

Django annotation and Implementation for group by every two hours

2017-07-10 Thread kanhaiya yadav
Enter code here... Hi, I have a model class XyzModel (models.Model): name = models.CharField(max_length=NAME_LENGTH) unique_id = models.CharField(max_length=NAME_LENGTH) info = models.CharField(max_length=NAME_LENGTH, blank=True) violation_time = models.DateTimeField() I have man