from django import forms

from .models import StewardNotification


class StewardNotificationForm(forms.ModelForm):

    class Meta:
        model = StewardNotification
        fields = (
            # Hidden fields
            'content_type', 'object_id',

            # Organizer fields
            'name', 'phone', 'email', 'type', 'url', 'facebook_page',

            # StewardProject fields
            'use', 'land_tenure_status', 'support_organization',
            'include_on_map', 'share_contact_details',
        )
        widgets = {
            'content_type': forms.HiddenInput(),
            'object_id': forms.HiddenInput(),
        }

from django import forms


class StewardNotificationFormMixin(forms.ModelForm):

    class Meta:
        fields = (
            # Hidden fields
            'content_type', 'object_id',

            # Organizer fields
            'name', 'phone', 'email', 'type', 'url', 'facebook_page',

            # StewardProject fields
            'project_name', 'use', 'land_tenure_status',
            'support_organization', 'include_on_map',
        )
        widgets = {
            'content_type': forms.HiddenInput(),
            'object_id': forms.HiddenInput(),
        }

Update model fields