Boston Legal is a spin-off.
The American producers of the series also hired the British writer and barrister John Mortimer (creator of the UK legal series Rumpole of the Bailey) as a consultant for Boston Legal
Boston has an ordinance, enacted in 2014, that bars the Boston Police Department "from detaining anyone based on their immigration status unless they have a criminal warrant"

