Comments (6)
Thanks, i will try to solve this ASAP.
from django-validated-file.
I've added the following code in the validatedfile/fields.py and for now everything is working.
It was written according to the south tutorial:
http://south.readthedocs.org/en/latest/tutorial/part4.html#tutorial-part-4
I don't know how to submit the changes (am I just to push it to your repository?) to you for a review, so since its just a small chunk i've posted it here.
try:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([
(
[ValidatedFileField], # Class(es) these apply to
[], # Positional arguments (not used)
{ # Keyword argument
"content_types": ["content_types", {}],
"max_upload_size": ["max_upload_size", {}]
},
),
], ["^validatedfile\.fields\.ValidatedFileField"])
except ImportError:
pass
from django-validated-file.
Thanks,
My preference on code submission is with a pull request, anyway I will review and add your changes.
from django-validated-file.
I push your suggested code with small changes, can you check if everything works for you with my code?
from django-validated-file.
The migrations work so far locally.
It will be a while until i move to a production environment to give you a final answer.
from django-validated-file.
I close the bug, i think is fixed.
from django-validated-file.
Related Issues (9)
- Python 3.6 error
- magic issue on windows? HOT 1
- You can not install django-validate-file without preinstalled django HOT 4
- "ImportError: cannot import name ValidatedFileField" HOT 1
- MagicException Error.. Failed To Load HOT 1
- Please Add License HOT 2
- Correct file extension based on mimetype HOT 1
- Order of file size check and mime type check should be changed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-validated-file.