mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Add quick-start assistant for new users (#833)
* First draft for quick-setup * Add payment * Fix stripe w/o connect * cols * Add tests
This commit is contained in:
@@ -11,7 +11,10 @@ class SoupTest(TestCase):
|
||||
def post_doc(self, *args, **kwargs):
|
||||
kwargs['follow'] = True
|
||||
response = self.client.post(*args, **kwargs)
|
||||
return BeautifulSoup(response.rendered_content, "lxml")
|
||||
try:
|
||||
return BeautifulSoup(response.rendered_content, "lxml")
|
||||
except AttributeError:
|
||||
return BeautifulSoup(response.content, "lxml")
|
||||
|
||||
|
||||
def extract_form_fields(soup):
|
||||
@@ -36,7 +39,7 @@ def extract_form_fields(soup):
|
||||
|
||||
# textareas
|
||||
for textarea in soup.findAll('textarea'):
|
||||
data[textarea['name']] = textarea.string or ''
|
||||
data[textarea['name']] = textarea.text or ''
|
||||
|
||||
# select fields
|
||||
for select in soup.find_all('select'):
|
||||
|
||||
Reference in New Issue
Block a user