— ### Модуль: monocle_social_buttons
Модуль для отображения на странице ссылок на социальные сети.
—
## Пример отображения на сайте: 
## Пример отображения в панели администрирования: 

## Файл models.py:
from django.db import models
- class SocialButton(models.Model):
name = models.CharField(max_length=255, verbose_name= ‘Название социальной сети’) icon = models.ImageField(upload_to=’models/%Y/%m/%d’, verbose_name= ‘Иконка соцсети’) url = models.URLField() position = models.PositiveIntegerField(default=0, verbose_name=’Порядок’)
- def __str__(self):
return self.name
- class Meta:
verbose_name_plural = u’Социальные кнопки’ verbose_name = u’Социальная кнопка’ ordering = [‘position’]
Metadata
Release files for monocle_social_buttons 0.2.0.3
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_social_buttons-0.2.0.3.tar.gz | 117.9 kB | Without provenance | Details for monocle_social_buttons-0.2.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| monocle_social_buttons-0.2.0.3-py3-none-any.whl | Python 3 | none | any | Details for monocle_social_buttons-0.2.0.3-py3-none-any.whl |
Total release size: 249.7 kB
Security for monocle_social_buttons 0.2.0.3
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.