Skip to content

Commit

Permalink
Fix example for parameter condition
Browse files Browse the repository at this point in the history
Fixes #132
  • Loading branch information
andy-isoc committed Nov 19, 2024
1 parent 0c1ff12 commit e4e09a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conditions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Django-Flags comes with the following conditions built-in:

### `boolean`

A simple boolean true/false intended to enable or disable a flag explicitly. The state of the flag evaluates to the value of the boolean condition.
A simple boolean true/false intended to enable or disable a flag explicitly. The state of the flag evaluates to the value of the boolean condition.


```python
Expand Down Expand Up @@ -41,7 +41,7 @@ Allows a flag to be enabled by including a parameter in the request's query stri
```python
FLAGS = {
'MY_FLAG': [
{'condition': 'parameter', 'value': 'my_flag_param1'}, # ?my_flag_param1=true
{'condition': 'parameter', 'value': 'my_flag_param1'}, # ?my_flag_param1=True
{'condition': 'parameter', 'value': 'my_flag_param2=now'}, # ?my_flag_param2=now
{'condition': 'parameter', 'value': 'my_flag_param3='}, # ?my_flag_param3
]
Expand Down

0 comments on commit e4e09a3

Please sign in to comment.