Fix OriginPermission model for admin
- Change the display name to self.pattern (instead of older self.origin_pattern)
- Set the logged_ip field to None if no value is given (empty string is an invalid value for IP fields in Postgres)