code: def form_valid(self, form):
          
          form.categorize_metrics()
          return super(CategoryFormView, self).form_valid(form)
docs: Get the category name/metric slugs from the form, and update the
          category so contains the given metrics.