mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-29 11:59:36 +00:00
Fix "push changes" crash in CommunityAuthSiteAdminForm
This commit is contained in:

committed by
Magnus Hagander

parent
fff748282b
commit
1adaab8955
@ -34,7 +34,7 @@ class CommunityAuthSiteAdminForm(forms.ModelForm):
|
||||
def clean(self):
|
||||
d = super().clean()
|
||||
|
||||
if d.get('push_changes', False) and not d['apiurl']:
|
||||
if d.get('push_changes', False) and not d.get('apiurl', ''):
|
||||
self.add_error('push_changes', 'API url must be specified to enable push changes!')
|
||||
|
||||
if d.get('push_ssh', False) and not d.get('push_changes', False):
|
||||
|
Reference in New Issue
Block a user