Code Monkey home page Code Monkey logo

django-jamsession's People

Contributors

cmheisel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

django-jamsession's Issues

Edit schema

  • Edit name
  • Schema should appear in form as it did when user originally entered it
  • Editing schema should copy data into new schema/modify existing schema

Duplicate key error after unsuccessfull save

Reproduce

  • Create a data set definition
  • Give it a name and give it an invalid schema
  • Hit Save (validates correctly)
  • Hit Save again (throws exception)

Exception

Environment:

Request Method: POST
Request URL: http://localhost:8000/jamsession/admin/datasetdefinition/add/

Django Version: 1.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.admindocs',
'jamsession',
'django_nose']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/utils/decorators.py" in _wrapped_view
  2.                 response = view_func(request, _args, *_kwargs)
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  3.     response = view_func(request, _args, *_kwargs)
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/contrib/admin/sites.py" in inner
  4.         return view(request, _args, *_kwargs)
    
    File "/Users/chris/Dropbox/repos/django-jamsession/jamsession/views/admin/init.py" in create_object
  5. return view.dispatch(request)
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/views/generic/base.py" in dispatch
  6.     return handler(request, _args, *_kwargs)
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/views/generic/edit.py" in post
  7.     return super(BaseCreateView, self).post(request, _args, *_kwargs)
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/views/generic/edit.py" in post
  8.         return self.form_valid(form)
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/django/views/generic/edit.py" in form_valid
  9.     self.object = form.save()
    
    File "/Users/chris/Dropbox/repos/django-jamsession/jamsession/forms/admin.py" in save
  10.     obj.save()
    
    File "/Users/chris/.virtualenvs/jamsession/lib/python2.6/site-packages/mongoengine/document.py" in save
  11.         raise OperationError(message % unicode(err))
    

Exception Type: OperationError at /jamsession/admin/datasetdefinition/add/
Exception Value: Tried to save duplicate unique keys (E11000 duplicate key error index: jamsession-example.documentmodel.$name_1 dup key: { : "Heisel's Test Form" })

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.