معرفی شرکت ها


django-customselectwidget-0.1.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Django Custom select widget
ویژگی مقدار
سیستم عامل -
نام فایل django-customselectwidget-0.1.1
نام django-customselectwidget
نسخه کتابخانه 0.1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sayed Hisham
ایمیل نویسنده hisham2k9@gmail.com
آدرس صفحه اصلی https://github.com/hisham2k9/django-customselectwidget
آدرس اینترنتی https://pypi.org/project/django-customselectwidget/
مجوز LGPL 3
django-CustomSelectWidget ======================= This is a custom Select Widget for django forms and modelforms. This widget will enable you to have a select field in HTML that can take free text value along with a limited select options. the selectable option can be selected by user or if need be, the user can type their own free text in the field. This widget works with django.forms.CharField.ChildProcessError Supported Python versions: 3.4+ Supported Django versions: 2.0+ Installation ============ Install with pip ---------------- .. code-block:: bash $ pip install django-CustomSelectWidget Configure your models.py or forms.py ------------------------------------- .. code-block:: python from django.forms.models import ModelForm from customselectwidget.customselectwidget import CustomSelectWidget from django import forms # ... class MyModelForm(ModelForm): # ..... my_field=forms.CharField(required=False,max_length=200, label='Please select your task') def __init__(self, *args, **kwargs): _type_list = kwargs.pop('data_list', None) super(MyModelForm, self).__init__(*args, **kwargs) # the "name" parameter will allow you to use the same widget more than once in the same # form, not setting this parameter differently will cuse all inputs display the # same list. self.fields['my_field'].widget = CustomSelectWidget(data_list=['option 1','option 2','option 3'], name='type-list') In your settings.py ------------------- .. code-block:: python INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', #.....................# 'customselectwidget', )


نیازمندی

مقدار نام
>=2.0 django


نحوه نصب


نصب پکیج whl django-customselectwidget-0.1.1:

    pip install django-customselectwidget-0.1.1.whl


نصب پکیج tar.gz django-customselectwidget-0.1.1:

    pip install django-customselectwidget-0.1.1.tar.gz