AttributeError: 'ImageFieldFile' object has no attribute '_meta'
class User(AbstractUser):
image = models.ImageField(upload_to = 'static/images', blank = True)
def __str__(self):
return self.username
class UserSettingsForm(ModelForm):
User = get_user_model()
class Meta:
model = User
fields = ['image']
exclude = ['user']
customer = request.user.image
form = UserSettingsForm(instance=customer)
{{form.as_p}}