Skip to content

Commit

Permalink
Merge pull request #123 from vovanbo/patch-1
Browse files Browse the repository at this point in the history
Misprint fix in docs example of key constructor params
  • Loading branch information
auvipy committed Sep 8, 2018
2 parents 33b50a8 + 484974a commit 9eabcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -1106,7 +1106,7 @@ But there is another way. You can send `params` in key constructor initializatio
keys are bit names and values are bit `params` attribute value (look at `CountryView`):

class CityKeyConstructor(DefaultKeyConstructor):
geoip = bits.RequestMetaKeyBit(params=['GEOIP_COUNTRY'])
geoip = bits.RequestMetaKeyBit(params=['GEOIP_CITY'])

class CityView(views.APIView):
@cache_response(key_func=CityKeyConstructor())
Expand Down

0 comments on commit 9eabcaa

Please sign in to comment.