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.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d11e9fa5a2a21c92ab5896c4b6b87990f942a79a3ed84a0f5b085c10bf7c20a |
|
MD5 | bb390367f524be418f13c5632e0d962e |
|
BLAKE2b-256 | e4b0d1080aedf9e0297ed1cfff1eafa281117d7b4a89965340d90008cef054cc |