GithubHelp home page GithubHelp logo

bootstrap-uploadprogress's People

Contributors

dependabot[bot] avatar jakobadam avatar robertschulze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bootstrap-uploadprogress's Issues

Messages returned by django are not seen by user

Since the response is fetched via XHR and discarded after the upload is successful, any flash messages set by django on a successful upload are never seen by the user.

I think fixing this would require a bunch of stuff that would be complicated and unnecessary. However, I thought it might be helpful to document the behavior and a possible workaround, in case others experience the issue.

To workaround the issue, pass an empty messages list to the view renderer -
status = 200
return render(request, self.template_name, {'messages': []}, status=status)

The discarded response will contain the empty message list, while the messages in message queue will be untouched. Then, after the redirect, any messages in the message queue will be displayed normally.

an update required

Error:
ModelForm without 'fields' or the 'exclude' attribute is deprecated

is given with latest Django.

exclude = []

needed in PackageForm's Meta class.

class PackageForm(forms.ModelForm):

class Meta:
    exclude = []
    model = Package
    widgets = {
        'name': _get_widget('Enter package name')
        }

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.