Giter Site home page Giter Site logo

Comments (6)

jespino avatar jespino commented on June 2, 2024

Thanks, i will try to solve this ASAP.

from django-validated-file.

TheMeaningfulEngineer avatar TheMeaningfulEngineer commented on June 2, 2024

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.

jespino avatar jespino commented on June 2, 2024

Thanks,

My preference on code submission is with a pull request, anyway I will review and add your changes.

from django-validated-file.

jespino avatar jespino commented on June 2, 2024

I push your suggested code with small changes, can you check if everything works for you with my code?

from django-validated-file.

TheMeaningfulEngineer avatar TheMeaningfulEngineer commented on June 2, 2024

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.

jespino avatar jespino commented on June 2, 2024

I close the bug, i think is fixed.

from django-validated-file.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.