Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

hemamaps / django-countries   python

Repository URL to install this package:

Version: 3.4.1 

/ tests / forms.py

from django import forms

from django_countries.tests import models


class PersonForm(forms.ModelForm):

    class Meta:
        model = models.Person
        fields = ['country', 'favourite_country']


class AllowNullForm(forms.ModelForm):

    class Meta:
        model = models.AllowNull
        fields = ['country']


class LegacyForm(forms.ModelForm):

    class Meta:
        model = models.Legacy
        fields = ['default', 'default_callable']