Skip to content

Commit

Permalink
[fix] Fixed FallbackMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Jul 24, 2024
1 parent 28e039b commit a053884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwisp_utils/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class FallbackMixin(object):
the value when a user knows that the default will get changed.
"""

def __init__(self, fallback, *args, **kwargs):
self.fallback = fallback
def __init__(self, *args, **kwargs):
self.fallback = kwargs.pop('fallback')
opts = dict(blank=True, null=True, default=None)
opts.update(kwargs)
super().__init__(*args, **opts)
Expand Down

0 comments on commit a053884

Please sign in to comment.