Fix template tags for model edit