Hi,
I have a picture for my custom user declared as follows:
class CustomUser(AbstractBaseUser):
picture = models.ImageField(upload_to='profile_pictures', null=True,
blank=True)
In admin I use the image
class CustomUserAdmin(UserAdmin):
fieldsets(
('Profile details', {
'fields': (
'picture',
'status',
)
}),
)
Now for some reason even though I have null=True, blank=True in admin the
picture turns into a required field. Has anyone else experienced this or is
this expected behaviour ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/y2Bg2mvTnYMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.