I think something like this:
```
heat, created = app.head.get_or_create(region=region.id, defaults={'value': hotness})
if not created:
    heat.update(value=hotness)
```