### Модуль: monocle_reviews
Модуль с отзывами клиентов.
---
## **Пример отображения на сайте:**

## **Пример отображения в панели администрирования:**

## **Файл models.py:**
from django.db import models
from filebrowser.fields import FileBrowseField
class Review(models.Model):
reviewer = models.CharField(max_length=255, verbose_name='Имя клиента')
image = models.ImageField(upload_to='reviews/%Y/%m/%d', verbose_name='Фото клиента')
text = models.TextField(verbose_name='Текст отзыва')
isShown = models.BooleanField(default=True, verbose_name='Показывать отзыв')
position = models.PositiveIntegerField(default=0, verbose_name='Порядок')
def __str__(self):
return self.reviewer
class Meta:
verbose_name_plural = u'Отзывы'
verbose_name = u'Отзыв'
ordering = ['position']
from django.apps import AppConfig
class CustomAppConfig(AppConfig):
name = 'apps.monocle_reviews'
verbose_name = 'Отзывы клиентов'
Metadata
Release files for monocle-reviews 0.3.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| monocle_reviews-0.3.0.2.tar.gz | 101.6 kB | Without provenance | Details for monocle_reviews-0.3.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| monocle_reviews-0.3.0.2-py3-none-any.whl | Python 3 | none | any | Details for monocle_reviews-0.3.0.2-py3-none-any.whl |
Total release size: 247.5 kB
Release files / monocle_reviews-0.3.0.2.tar.gz
| Download URL | monocle_reviews-0.3.0.2.tar.gz |
|---|---|
| Size | 101.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00677b09de00bd90e4900bd2fe55af2b66412263b34168146fcea5c9bb4d9448
|
|
BLAKE2b-256 checksum How to use checksums |
9564c3f0a8a7808463082a18bd1144ef4d06cf5d4f2501cd96d4ad41e0eda064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / monocle_reviews-0.3.0.2-py3-none-any.whl
| Download URL | monocle_reviews-0.3.0.2-py3-none-any.whl |
|---|---|
| Size | 145.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb7412b7d6f4d184685494a15790125ad6b6d42f9b5c81e19e6f85f3147d28bf
|
|
BLAKE2b-256 checksum How to use checksums |
daac11e1bf4c2f85f3ac2e599e571753874413bfde2dd399bb3bdb13312400bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for monocle-reviews 0.3.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.