There has been a graffiti attack on the Adelaide electorate office of federal Liberal MP Christopher Pyne.

The words God Loves Gonski have been scrawled in red spray paint along the fence outside his office at suburban Magill.

As Opposition education spokesman, Mr Pyne has been a strong critic of the Federal Government's Gonski school funding program.

Last week, red graffiti was daubed on the main ALP office in Adelaide after Kevin Rudd beat Julia Gillard in a ballot to become Prime Minister again.