Turn the ignition on (not the engine), and flick the light switch from off to sidelights then back to off again twice in quick succession. You should here a beep to tell you it's worked. The lights will now never come on automatically. If you then want to turn the function back on again, repeat the above process.
I love auto lights!
Jack
EDIT: @james24785 got there first!haha