Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCal export gives error #2906

Closed
cbolz opened this issue Jan 27, 2024 · 1 comment
Closed

iCal export gives error #2906

cbolz opened this issue Jan 27, 2024 · 1 comment

Comments

@cbolz
Copy link

cbolz commented Jan 27, 2024

Tandoor Version

1.5.11

Setup

Kubernetes

Reverse Proxy

Traefik

Other

No response

Bug description

When clicking on "Meal Plan" -> "Export ics" I see "Server Error (500)"
When I browse through the API the endpoint "plan-ical" seems to be missing.

Relevant logs

ERROR:django.request:Internal Server Error: /api/plan-ical/2024-01-22/2024-02-11/                                                                                                                                                                                                                                              
Traceback (most recent call last):                                                                                                                                                                                                                                                                                             
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner                                                                                                                                                                                                                   
    response = get_response(request)                                                                                                                                                                                                                                                                                           
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response                                                                                                                                                                                                               
    response = wrapped_callback(request, *callback_args, **callback_kwargs)                                                                                                                                                                                                                                                    
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view                                                                                                                                                                                                           
    return view_func(request, *args, **kwargs)                                                                                                                                                                                                                                                                                 
  File "/opt/recipes/cookbook/views/api.py", line 1689, in get_plan_ical                                                                                                                                                                                                                                                       
    queryset = queryset.filter(date__gte=from_date)                                                                                                                                                                                                                                                                            
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1436, in filter                                                                                                                                                                                                                        
    return self._filter_or_exclude(False, args, kwargs)                                                                                                                                                                                                                                                                        
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1454, in _filter_or_exclude                                                                                                                                                                                                            
    clone._filter_or_exclude_inplace(negate, args, kwargs)                                                                                                                                                                                                                                                                     
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1461, in _filter_or_exclude_inplace                                                                                                                                                                                                    
    self._query.add_q(Q(*args, **kwargs))                                                                                                                                                                                                                                                                                      
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1545, in add_q                                                                                                                                                                                                                     
    clause, _ = self._add_q(q_object, self.used_aliases)                                                                                                                                                                                                                                                                       
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1576, in _add_q                                                                                                                                                                                                                    
    child_clause, needed_inner = self.build_filter(                                                                                                                                                                                                                                                                            
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1426, in build_filter                                                                                                                                                                                                              
    lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize)                                                                                                                                                                                                                                                 
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1236, in solve_lookup_type                                                                                                                                                                                                         
    _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())                                                                                                                                                                                                                                           
  File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1724, in names_to_path                                                                                                                                                                                                             
    raise FieldError(                                                                                                                                                                                                                                                                                                          
django.core.exceptions.FieldError: Cannot resolve keyword 'date' into field. Choices are: created_by, created_by_id, from_date, id, meal_type, meal_type_id, note, recipe, recipe_id, servings, shared, shoppinglistrecipe, space, space_id, title, to_date
@vabene1111
Copy link
Collaborator

thanks for the report, fixed in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants