old_contents: from django.db import models
  from django.utils.timezone import now
  
  class Reading(models.Model):
      # Authenticating on user
      owner = models.ForeignKey('auth.User', related_name='api',
                                default='')
  
      # When the row gets made
      created = models.DateTimeField(auto_now_add=True)
  
      # Data on sensor readings
      # TODO how do you programmatically set these fields?
      pm10 = models.IntegerField()
      pm10_reading = models.IntegerField()
      pm25 = models.IntegerField()
      pm25_reading = models.IntegerField()
  
      class Meta:
          ordering = ('-created',)
  
new_contents: from django.db import models
  from django.utils.timezone import now
  
  class Reading(models.Model):
      # Authenticating on user
      owner = models.ForeignKey('auth.User', related_name='readings',
                                default='')
  
      # When the row gets made
      created = models.DateTimeField(auto_now_add=True)
      createdHour = models.DateTimeField(default = datetime.datetime.now, blank=True)
  
      # Data on sensor readings
      # TODO how do you programmatically set these fields?
      pm10 = models.IntegerField(default = 0)
      pm25 = models.IntegerField(default = 0)
      pm10count = models.IntegerField(default = 0)
      pm25count = models.IntegerField(default = 0)
  
      class Meta:
          ordering = ('-created',)
  
      def save(self, *args, **kwargs):
          super(Reading, self).save(*args, **kwargs)
subject: Include createHour field that will streamline groupBy operations in the db