mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-04-04 22:30:23 +00:00
16 lines
384 B
Python
16 lines
384 B
Python
|
|
# -*- coding:utf-8 -*-
|
||
|
|
from __future__ import absolute_import, unicode_literals
|
||
|
|
|
||
|
|
from django_select2.fields import (AutoModelSelect2Field,
|
||
|
|
AutoModelSelect2TagField)
|
||
|
|
|
||
|
|
from tests.testapp import models
|
||
|
|
|
||
|
|
|
||
|
|
class GenreTagField(AutoModelSelect2TagField):
|
||
|
|
queryset = models.Genre
|
||
|
|
|
||
|
|
|
||
|
|
class ArtistField(AutoModelSelect2Field):
|
||
|
|
queryset = models.Artist
|