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.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb066a46451e7f41804e695d1f270679827e863e22d0ddb056a578941fa4df46 |
|
MD5 | 1ff4c537791a9b09cfd4816ddedf51ed |
|
BLAKE2b-256 | 3e11c551c5cbfcbe64b8c8bd700d53c7f31e939aa919ce4742405ef7e714cc98 |