from django import forms

from newsreader.accounts.models import User
from newsreader.core.forms import CheckboxInput


class UserSettingsForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ("first_name", "last_name", "auto_mark_read")
        widgets = {"auto_mark_read": CheckboxInput}
