from django.db import models

# Create your models here.
class Usage(models.Model):
    time_of_reading = models.DateTimeField()
    watts = models.IntegerField()


from django.db import models

# Create your models here.
class Usage(models.Model):
    time_of_reading = models.DateTimeField()
    watts = models.IntegerField()

    def __unicode__(self):
        return '{}: {}'.format(self.time_of_reading, self.watts)



add Usage table