```ruby
class TaskDefinitionSerializer < ActiveModel::Serializer
  attributes :id, :abbreviation, :name, :description, 
    :weight, :target_grade, :target_date, 
    :upload_requirements, 
    :plagiarism_checks, :plagiarism_report_url, :plagiarism_warn_pct,
    :restrict_status_updates,
    :group_set_id, :has_task_pdf?, :has_task_resources?,
    :due_date, :start_date

  def weight
  	object.weighting
  end
end
```

Add is_graded to task definition serializer
user
```ruby
class TaskDefinitionSerializer < ActiveModel::Serializer
  attributes :id, :abbreviation, :name, :description,
    :weight, :target_grade, :target_date,
    :upload_requirements,
    :plagiarism_checks, :plagiarism_report_url, :plagiarism_warn_pct,
    :restrict_status_updates,
    :group_set_id, :has_task_pdf?, :has_task_resources?,
    :due_date, :start_date, :is_graded

  def weight
    object.weighting
  end
end
```
assistant