def custom_create(request):
    class SlugChangingArticleForm(forms.ModelForm):
        """Custom form class to overwrite the slug."""

        class Meta:
            model = Article

        def save(self, *args, **kwargs):
            self.instance.slug = 'some-other-slug'
            return super(SlugChangingArticleForm, self).save(*args, **kwargs)

    from django.views.generic.create_update import create_object
    return create_object(request,
        post_save_redirect='/create_update/view/article/%(slug)s/',
        form_class=SlugChangingArticleForm)
Unplug a container from a dock area.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/views/views.py/custom_create--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/qt/docking/layout_handling.py/unplug_container