push-things/django-th

View on GitHub
th_wallabag/forms.py

Summary

Maintainability
A
3 hrs
Test Coverage
# coding: utf-8

from django import forms
from django.forms import TextInput
from th_wallabag.models import Wallabag


class WallabagForm(forms.ModelForm):

    """
        for to handle Wallabag service
    """

    class Meta:
        model = Wallabag
        fields = ('tag',)
        widgets = {
            'tag': TextInput(attrs={'class': 'form-control'}),
        }


class WallabagProviderForm(WallabagForm):
    pass


class WallabagConsumerForm(WallabagForm):
    pass