No objection to this way, but you could also just do:
```python
def accepts_request(f):
    f.accepts_request = True
    return f
```