human
Complete the below
def custom_create(request):

    ''''Calls create_object generic view with a custom form class.'
    '''
 ... Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    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)
    return create_object(request, post_save_redirect='/views/create_update/view/article/%(slug)s/', form_class=SlugChangingArticleForm)