Convert datetime object to integer when updated_field is an IntegerField with timestamp