File: forms.py

package info (click to toggle)
python-model-bakery 1.20.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 532 kB
  • sloc: python: 4,298; sh: 149; makefile: 21
file content (9 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
from django.forms import ModelForm

from tests.generic.models import DummyGenericIPAddressFieldModel


class DummyGenericIPAddressFieldForm(ModelForm):
    class Meta:
        fields = ("ipv4_field", "ipv6_field", "ipv46_field")
        model = DummyGenericIPAddressFieldModel