Django Models Extensions
Project description
Django Models Extensions
Installation
pip install django-models-ext
Usage
from django_models_ext import BaseModelMixin, upload_path, upload_file_url class MyModel(BaseModelMixin): upload = models.FileField(upload_to=upload_path) @property def upload_url(self): return upload_file_url(self.upload)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_models_ext-1.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d7ba90172b30e45f61eacf4afa85b8e79ef5cf6cef48ece05b36e55befabac |
|
MD5 | 3329f564e74b2d6a9e88a3952e3445b9 |
|
BLAKE2b-256 | f5fb6bb2f15058d615806536ff8325ebe301b3942e19fc603f869460e321a671 |