Skip to content

Commit 9eabcaa

Browse files
authored
Merge pull request #123 from vovanbo/patch-1
Misprint fix in docs example of key constructor params
2 parents 33b50a8 + 484974a commit 9eabcaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ But there is another way. You can send `params` in key constructor initializatio
11061106
keys are bit names and values are bit `params` attribute value (look at `CountryView`):
11071107

11081108
class CityKeyConstructor(DefaultKeyConstructor):
1109-
geoip = bits.RequestMetaKeyBit(params=['GEOIP_COUNTRY'])
1109+
geoip = bits.RequestMetaKeyBit(params=['GEOIP_CITY'])
11101110

11111111
class CityView(views.APIView):
11121112
@cache_response(key_func=CityKeyConstructor())

0 commit comments

Comments
 (0)