I have a django app with the following model:

```
class Event(models.Model):
    # id = models.IntegerField(primary_key=True)
    event_type = models.ForeignKey(
        EventType,
        on_delete=models.DO_NOTHING,
        # we don't want to delete anything in the StatusType table.
        blank=True,
        null=True,
    )
    reason_code = models.IntegerField(default=0)
    elapsed_time = models.IntegerField(default=0)
    event_at = models.DateTimeField("Event Time", blank=True, auto_now_add=True)
    object_id = models.ForeignKey(Machine, on_delete=models.DO_NOTHING, )
    count = models.BigIntegerField(blank=True, null=True)
    position = models.IntegerField(blank=True, null=True)
    rfid_tag = models.ForeignKey(Employee, blank=True, null=True, on_delete=models.DO_NOTHING,
                                 verbose_name='User Name')
    hidden = models.BooleanField(default=False)  # for hiding from lists

    # def __str__(self):              # __unicode__ on Python 2
    #     return self.event_type

    class Meta:
        verbose_name = 'event'
        verbose_name_plural = 'Events'

    def __str__(self):
        return str(self.id)

```

While trying to run a simple migration, I keep getting this error:

```
File "/home/icar/E-Django/venv/local/lib/python2.7/site-packages/django/db/utils.py", line 95, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/home/epicar/E-Django/venv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: cannot cast type double precision to time without time zone

```

The problem I'm having with this, is I don't understand WHY it's trying to CAST the double precision to time without time zone. I don't want it to. I'm not quite sure what else to try. I have tried doing the following: 

```
SELECT CAST(elapsed_time as double precision) FROM event;

```

I also tried changing the elapsed\_time field to integer and got the same error (referencing integer instead of double precision). So I know it's that particular field.

I've deleted all of the migrations and tried to start fresh. That didn't work. 

Any ideas?

Update: properties of elapsed field from pgadmin:

[![enter image description here](https://i.stack.imgur.com/4a3R7.png)](https://i.stack.imgur.com/4a3R7.png)