Django Models Extensions
Project description
Django Models Extensions
Installation
pip install django-models-ext
Usage
from 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.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2899a2f04449edf297d37bce5127648ad31b970910d1a8dc9956b9fe31ab2f2f |
|
MD5 | b2964c31251ca754a8b9643a2e716a2d |
|
BLAKE2b-256 | 71db5f2f44ae2d8a561589d337046095d2d864fb973646634a5037507b2f91ce |