Fix sql textarea generated id
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 18 Aug 2024 18:10:21 +0000 (13:10 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 18 Aug 2024 18:10:21 +0000 (13:10 -0500)
src/pgwui_sql/views/sql.py

index e55733a88ae85854752e902969faadbbbf229aee..e66e8cf1a12d9ccbcf19598d0cfcfd940aa798a3 100644 (file)
@@ -45,7 +45,7 @@ class SQLWTForm(pgwui_core.forms.AuthWTForm):
     # We don't actually use the labels, wanting the template to
     # look (and render) like html, but I'll define them anyway
     # just to keep my hand in.
-    sql = TextAreaField('SQL:')
+    sql = TextAreaField('SQL:', id='sql_id')
 
 
 @attrs.define(slots=False)