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.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8004f0875661e361e41459aa6cce939f51c089a45b7ae8b8d38b48076d3b05c |
|
MD5 | 85250bf15bc9df8c43f3deab8d107ac9 |
|
BLAKE2b-256 | 5b0c1fa8c50a9c8d097b19cc6d65cf386806270ed3c3426fd5b7090b73ba2d86 |