def get_form(self, request, obj=None, **kwargs):
    if (obj is not None):
        return super(ClonedRepoAdmin, self).get_form(request, obj, **kwargs)
    else:
        return NewRepoForm
def get_form(self, request, obj=None, **kwargs):
    if (obj is not None):
        return super(ClonedRepoAdmin, self).get_form(request, obj, **kwargs)
    else:
        return NewRepoForm