Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Sep 17, 2023
1 parent 6873b9f commit bd95c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authlib/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def deconstruct(self):
return name, "django.db.models.CharField", args, kwargs

def formfield(self, **kwargs):
if len(self.choices) <= 1 and False:
if len(self.choices) <= 1:
kwargs.setdefault("initial", self.choices[0][0])
kwargs.setdefault("widget", forms.HiddenInput)
return super().formfield(**kwargs)

0 comments on commit bd95c26

Please sign in to comment.