fidals / refarm-site

Django applications with simple ecommerce functions
MIT License
2 stars 2 forks source link

context.py:223-224: Take `view_type` value from... #184

Closed 0pdd closed 6 years ago

0pdd commented 6 years ago

The puzzle 550-6e482196 from #550 has to be resolved:

https://github.com/fidals/refarm-site/blob/471fe2d1d8b6867da6567126cd1cc6f242764887/catalog/context.py#L223-L224

The puzzle was created by duker33 on 17-Sep-18.

Estimate: 15 minutes,

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

duker33 commented 6 years ago

dataclass is not good decision here. Looked on enum: it looks too complex. We'll need to cast str to/from enum.

So, i choose list const