diff --git a/django_currentuser/db/models/fields.py b/django_currentuser/db/models/fields.py index f5fdfff..558bfb1 100644 --- a/django_currentuser/db/models/fields.py +++ b/django_currentuser/db/models/fields.py @@ -33,7 +33,7 @@ def __init__(self, *args, **kwargs): if self.on_update: kwargs["editable"] = False kwargs["blank"] = True - + kwargs.update(self.defaults) super(CurrentUserField, self).__init__(**kwargs) diff --git a/setup.py b/setup.py index c85956c..9df5c1b 100755 --- a/setup.py +++ b/setup.py @@ -41,20 +41,13 @@ 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Framework :: Django', - 'Framework :: Django :: 1.11', - 'Framework :: Django :: 2.1', - 'Framework :: Django :: 2.2', - 'Framework :: Django :: 3.0', - 'Framework :: Django :: 3.1', - 'Framework :: Django :: 3.2', + 'Framework :: Django :: 3', + 'Framework :: Django :: 4', ], )