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.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15af562a7ebaa06a3430c7ea46afafbc412c53a22ad9137f6396b83009a0f0d5 |
|
MD5 | abddb23da298a6ce1205048e886f0974 |
|
BLAKE2b-256 | 6c759fcc6f05a851dfbd4a1cf8ce9568d225cd69c22dccd6521f2a7204d2c060 |