Skip to main content

Customers reviews app for monocle project

Project description

### Модуль: monocle_reviews
Модуль с отзывами клиентов.

## **Пример отображения на сайте:**

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

## **Файл**

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 = 'Отзывы клиентов'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for monocle-reviews, version
Filename, size File type Python version Upload date Hashes
Filename, size monocle_reviews- (145.9 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size monocle_reviews- (101.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page