Quadrics as hyperplanes in finite affine geometries