coderedcorp / coderedcorp/coderedcms
'str' object has no attribute 'method'
- Lingua principale
- Python
- Stelle
- 765
- Fork
- 154
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
#### Describe the bug
Form input within 2nd level subpages
#### Steps to reproduce
-Home page already has form input
- If a sub page of the site has a form input, nothing happens
- When a second level sub page (root-page/1st-level-subpage/2nd-level-subpage) has form input, error triggers.
#### Expected behavior
The form input should be displayed and works flawlessly, not caring about if it's 1st, 2nd or so on... level of subpages.
#### Additional context
Exception location: _**page_models.py**_ _line_ _**1356**_ _**(if request.method == 'POST':)**_
```
def get_form(self, request, *args, **kwargs):
form_class = self.get_form_class()
form_params = self.get_form_parameters()
form_params.update(kwargs)
if request.method == 'POST':
return form_class(request.POST, request.FILES, *args, **form_params)
return form_class(*args, **form_params)
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.