Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Feat/base file field #122

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

acolazo
Copy link

@acolazo acolazo commented Dec 6, 2021

Add BaseFileField that sets upload_to as file_path by default.

Added Model Fields section to the README.

@acolazo acolazo force-pushed the feat/base-file-field branch from bb602bd to 3f920b7 Compare December 7, 2021 17:57
def file_path(self, name):
"""
Generic method to give to a FileField or ImageField in it's upload_to
parameter.
Copy link
Member

@nstuardod nstuardod Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace with
Generic method used to give a FileField or ImageField its `upload_to` parameter.

@acolazo acolazo force-pushed the feat/base-file-field branch from 3f920b7 to 6e1ce09 Compare February 10, 2022 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants