DocClass implemented as model; admin template enhanced; create_patch stub added