`or None` looks like it was copied from my original implementation. I don't think it's possible for `REMOTE_ADDR` to be missing or blank in the `request.META` but it's a defensive pattern to ensure that blanks are treated as same as a missing value which is to insert a NULL.