Giter Club home page Giter Club logo

django-batch-uploader's People

Contributors

ninapavlich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-batch-uploader's Issues

Improve default fields form position and visibility (feature request)

Hi,

This is not a bug but a feature request. Here, I intend to use the batch uploader to upload pictures in the propper category and with the propper date. 99% percent of the time, the whole batch is for the same date and the same category, making the "default fields" much more important for the user than the individual fields.

The current layout places the default fields at the bottom and in a folded div, making it hard to see, especially when there's a long list of uploads.

Thanks !!

Django 1.9 cannot import name 'EMPTY_CHANGELIST_VALUE'

Hi,

I migrated to django 1.9, and now I get the error below.
The fix is probably easy, see django-mptt/django-mptt@a9199d5

Thanks !

ImportError at /admin/ModuleAppuiReconstruction/chantierphoto/add/
cannot import name 'EMPTY_CHANGELIST_VALUE'

Traceback:  

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/contrib/admin/options.py" in wrapper
  541.                 return self.admin_site.admin_view(view)(*args, **kwargs)

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/contrib/admin/sites.py" in inner
  244.             return view(request, *args, **kwargs)

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django_batch_uploader/admin.py" in add_view
  60.                 response = self.batch_upload_response(request)

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django_batch_uploader/admin.py" in batch_upload_response
  191.                 value = str(self.get_field_contents(output_field, obj))

File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django_batch_uploader/admin.py" in get_field_contents
  134.         from django.contrib.admin.views.main import EMPTY_CHANGELIST_VALUE

Widgets are not the same than on admin page

Hi,

Currently, the widgets of the batch uploader form default fields are not the same than on the regular admin page.
It's the case for at least :

  • date fields, that display as plain text inputs, while there is a nice date picker in the normal admin
  • foreign keys displayed as raw_id_fields (with or without grappelli's autocomplete), that display as normal foreign key fields (which is a blocker if there's a very long list of possible foreign keys, slowing down the page to death).

Note that this happens using grappelli, but from the screenshots I see you use it too.

Thanks !

TemplateDoesNotExist

Hi,

With django 1.8.5, python 3.4.3, grappelli 2.7.1, after installing following the instructions and opening the admin batch upload page, I get :

TemplateDoesNotExist at /admin/ModuleAppuiReconstruction/chantierphoto/

for the template

admin/batch_change_list.html

I don't know anything about pip packages, but I guess the application isn't installed properly, since I can't find the batch_change_list.html file in my python libraries folder.
I made sure I have added the module in settings.py.
If I copy the templates folder to one of my app, the page loads correctly.

Javascript error on upload

Hi,

When hitting the "start uploading" button, I get a javascript error :

(index):99 Uncaught TypeError: Cannot read property 'indexOf' of undefined

This is the row var is_image = media_file_type.indexOf('image') >= 0;of the renderResponse(data) function. It seems the response is in plain html, and not json !

The upload still works if all the fields are set correctly, but only for the first image, and with no feedback at all.

@ninapavlich I'd love to be able to use this in the upcomming days, should I look if I manage to fix it myself, or is it an easy fix that you could take care of ?

TypeError: 'NoneType' object is not iterable

Hi,

Just installed this, followed the instructions but I keep getting this error when trying to save a new batch. Not sure how to resolve it. I've traced the line but the issue seems to be going over my head. Any ideas?

 File "/src/apps/django_batch_uploader/admin.py", line 69, in add_view
    response = self.batch_upload_response(request)
  File "/src/apps/django_batch_uploader/admin.py", line 174, in batch_upload_response
    output_fields = flatten_fieldsets(self.fieldsets)
  File "/lib/python2.7/site-packages/django/contrib/admin/utils.py", line 112, in flatten_fieldsets
    for name, opts in fieldsets:
TypeError: 'NoneType' object is not iterable

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.