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.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61de095300ae32d6dbdbb422f9dea770141248de8649388dcdae549ba22e2848 |
|
MD5 | 009a9d11085a808d2c3e04cd1cb7402a |
|
BLAKE2b-256 | deb625c1fc69ae5e2086ccba3f3f59e3a32eaa016d1c77fac9b2439426559b9a |