     obj = _.extend({}, @_local[planId], @_changed[planId])
 
     # iReadings should not contain exercise_ids and will cause a silent 422 on publish
-    if obj.type is PLAN_TYPE.reading
+    if obj.type is PLAN_TYPES.READING
       delete obj.settings.exercise_ids
 
     obj


    isHomework: (id) ->
      plan = @_getPlan(id)
      plan.type is PLAN_TYPE.homework

    isValid: (id) ->
      plan = @_getPlan(id)

  max: 4
  min: 2

PLAN_TYPES =
  HOMEWORK: 'homework'
  READING: 'reading'

TaskPlanConfig =

