معرفی شرکت ها


django-specifications-0.5.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Additional, dynamic fields for all Django models.
ویژگی مقدار
سیستم عامل -
نام فایل django-specifications-0.5.0
نام django-specifications
نسخه کتابخانه 0.5.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Matthias Kestenholz
ایمیل نویسنده mk@feinheit.ch
آدرس صفحه اصلی https://github.com/matthiask/django-specifications/
آدرس اینترنتی https://pypi.org/project/django-specifications/
مجوز BSD-3-Clause
===================== django-specifications ===================== .. image:: https://travis-ci.org/matthiask/django-specifications.png?branch=master :target: https://travis-ci.org/matthiask/django-specifications This module offers an easy way to attach auxiliary information to Django models. It allows configuring custom forms through the administration interface. Usage ===== 1. Add ``"specifications"`` to ``INSTALLED_APPS``. 2. Create a ``specification = ForeignKey("specifications.Specification")`` on the model you want to use specifications with. The foreign key can be nullable or required, as you wish. 3. Create the place where the specification field data is actually stored:: from specifications.models import SpecificationValueFieldBase class MyObjectField(SpecificationValueFieldBase): parent = models.ForeignKey( MyObject, on_delete=models.CASCADE, related_name="fields", ) class Meta: ordering = ["field__group__ordering", "ordering"] 4. Inherit from ``FormWithSpecification`` when creating your ``ModelForm``:: from specifications.forms import FormWithSpecification class MyObjectForm(FormWithSpecification): class Meta: model = MyObject 5. If you want to edit models with specifications you might want to use the following snippet:: from specifications.admin import ModelAdminWithSpecification class MyObjectAdmin(ModelAdminWithSpecification): pass The fields are available after saving a specification. The specification can be changed, but you risk losing data if you do this.


نیازمندی

مقدار نام
>=3.2 Django
- coverage


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

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


نحوه نصب


نصب پکیج whl django-specifications-0.5.0:

    pip install django-specifications-0.5.0.whl


نصب پکیج tar.gz django-specifications-0.5.0:

    pip install django-specifications-0.5.0.tar.gz