   assign_attributes_from_page: ->
     $("input[data-k-uuid='" + @uuid + "']").each (i, input) =>
       $input = $(input)
-      @set $input.data("attr"), $input.val()
+
+      if $input.is(':checkbox')
+        @set $input.data("attr"), $input.prop('checked')
+      else
+        @set $input.data("attr"), $input.val()
 
       model_data = $("[data-kindred-model]").find("[data-k-uuid='" + @uuid + "']")
       if !isNaN(parseFloat(model_data.data("id"))) && isFinite(model_data.data("id"))


  dirty_from_page: ->
    dirty = []
    $.each $("input[data-k-uuid='" + @uuid + "']"), (i, attr) =>
      dirty_object = {}
      unless $(attr).data("val").toString() == $(attr).val().toString()
        dirty.push(dirty_object[attr] = [$(attr).data("val").toString(), $(attr).val().toStrin])

    if dirty.length
      true

    $.each @attributes, (key, value) =>
      input = $($template).find("input[data-attr='" + key + "']")
      if input.length
        if input.is(':checkbox')
          input.prop('checked', value)
        else
          input.val(value)

    @_append_data_model_to_page()

