معرفی شرکت ها


edc-form-label-0.3.8


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Customize Django form label in realtime in clinicedc/edc projects
ویژگی مقدار
سیستم عامل -
نام فایل edc-form-label-0.3.8
نام edc-form-label
نسخه کتابخانه 0.3.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Erik van Widenfelt
ایمیل نویسنده ew2789@gmail.com
آدرس صفحه اصلی https://github.com/clinicedc/edc-form-label
آدرس اینترنتی https://pypi.org/project/edc-form-label/
مجوز GPL license, see LICENSE
|pypi| |actions| |coverage| edc-form-label -------------- Customize Django's form label in realtime For a sequence of data collection timepoints, we ask the question, "Are you circumcised?". At some time point we hope the response will be `YES`, but until then, we need to ask "Since we last saw you, were you circumcised?". It is a lot better if we can ask, "Since we last saw you in 'October 2018', were you circumcised?", where 'October 2018' represents the timepoint from which we got our last reponse. This module shows how you can insert 'October 2018' into the ModelAdmin/ModelForm the form label in realtime. For example: For a sequence of data collection timepoints, we ask the question, "Are you circumcised". At some point we hope the response will be YES. But until then we need to ask "Since we last saw you in October 2018, were you circumcised?", etc. .. code-block:: python from edc_form_label import FormLabel, CustomFormLabel, FormLabelModelAdminMixin class MyCustomLabelCondition(CustomLabelCondition): def check(self, **kwargs): if self.previous_obj.circumcised == NO: return True return False @register(MyModel) class MyModelAdmin(FormLabelModelAdminMixin admin.ModelAdmin): fieldsets = ( (None, { 'fields': ( 'subject_visit', 'report_datetime', 'circumcised')}, ), ) custom_form_labels = [ FormLabel( field='circumcised', custom_label='Since we last saw you in {previous_visit}, were you circumcised?', condition_cls=MyCustomLabelCondition) ] .. |pypi| image:: https://img.shields.io/pypi/v/edc-form-label.svg :target: https://pypi.python.org/pypi/edc-form-label .. |actions| image:: https://github.com/clinicedc/edc-form-label/workflows/build/badge.svg?branch=develop :target: https://github.com/clinicedc/edc-form-label/actions?query=workflow:build .. |coverage| image:: https://coveralls.io/repos/github/clinicedc/edc-form-label/badge.svg?branch=develop :target: https://coveralls.io/github/clinicedc/edc-form-label?branch=develop


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl edc-form-label-0.3.8:

    pip install edc-form-label-0.3.8.whl


نصب پکیج tar.gz edc-form-label-0.3.8:

    pip install edc-form-label-0.3.8.tar.gz