• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Support

if possible make a sub category public but parent is private ?

coco
July 10, 2020
chat_bubble_outline 3
  • link
    coco
    Members 53 posts
    July 10, 2020, 5:11 p.m. July 10, 2020, 5:11 p.m.
    link

    hi all, as topic, I just want make a sub category is public but parent or others is still private ?

  • link
    coco
    Members 53 posts
    July 13, 2020, 7:30 a.m. July 13, 2020, 7:30 a.m.
    link

    another issue

    RecursionError at /categories/
    maximum recursion depth exceeded in comparison
    Request Method: GET
    Request URL:    http://127.0.0.1:8000/categories/?ref=login
    Django Version: 2.2.12
    Exception Type: RecursionError
    Exception Value:    
    maximum recursion depth exceeded in comparison
    Exception Location: lib/python3.6/site-packages/rest_framework/relations.py in __init__, line 254
    Python Executable:  /bin/python
    Python Version: 3.6.5
    

    what is max node level of category? anyone help ? thanks

  • link
    coco
    Members 53 posts
    July 13, 2020, 7:54 a.m. July 13, 2020, 7:54 a.m.
    link
    @coco

    another issue

    RecursionError at /categories/
    maximum recursion depth exceeded in comparison
    Request Method: GET
    Request URL:    http://127.0.0.1:8000/categories/?ref=login
    Django Version: 2.2.12
    Exception Type: RecursionError
    Exception Value:    
    maximum recursion depth exceeded in comparison
    Exception Location: lib/python3.6/site-packages/rest_framework/relations.py in __init__, line 254
    Python Executable:  /bin/python
    Python Version: 3.6.5
    

    what is max node level of category? anyone help ? thanks

    I got a solution ...

    sys.setrecursionlimit(1500)
    

    stackoverflow.com/questions/3323001/what-is-the-maximum-recursion-depth-in-python-and-how-to-increase-it

  • link
    rafalp
    Project Lead 2027 posts
    July 19, 2020, 10:59 p.m. July 19, 2020, 10:59 p.m.
    link

    hi all, as topic, I just want make a sub category is public but parent or others is still private ?

    Category visibility cascades. This means you need to be able to see contents of parent category to be able to see its sub categories.

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago