def generate_context(self, request, form, *args, **kwargs): support = get_user(settings.SUPPORT_USER) profile_json = form.cleaned_data.get("profile_json") profile = parse_profile_json(support, profile_json) c = super(AugmentationIssueView, self).generate_context(request, form) return dict(c, **{"dataset": get_site_url(profile.get_absolute_url())})
def create_mixed_dataset(use, contents): set = parse_profile_json(use, contents) url = reverse("dataset_edit", args=[use.username, set.slug]) return HttpResponseRedirect(url)