QueraTeam / django-nextjs

Next.js integration for Django projects
MIT License
341 stars 17 forks source link

Use ** syntax #1

Closed ISilviu closed 2 years ago

ISilviu commented 2 years ago

I'm unable to use the library on a Python 3.8.5 environment, it complaints about the following issue:

unsupported operand type(s) for |: 'dict' and 'dict'

Couldn't the library just use the ** syntax, which is supported starting from Python 3.5?

danialkeimasi commented 2 years ago

Hi Silviu, thanks for your contribution. I believe, that the second ** operator is not necessary and you can write this instead:

{**request.COOKIES, settings.CSRF_COOKIE_NAME: get_csrf_token(request)}

Could you change this?