KuoChi / cloudcourse

Automatically exported from code.google.com/p/cloudcourse
Apache License 2.0
0 stars 0 forks source link

Uncaught exception: [<type 'exceptions.ValueError'>] The UserRegistration could not be created #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install
2. Deploy to appspot
3. Navigate to https://myapp.appspot.com/admin/core/userregistration/add/

What is the expected output? What do you see instead?
Actually to be honest I'm not clear but I think it's adding a user to an 
activity via admin interface (as opposed to the user adding themselves to an 
activity).

What version of the product are you using? On what operating system?
1.0

Please provide any additional information below.
06-18 11:40AM 27.833 /admin/core/userregistration/add/ 500 127ms 165cpu_ms 
30api_cpu_ms 1kb Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) 
Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729),gzip(gfe)

0.0.0.0 - user [18/Jun/2010:11:40:27 -0700] "POST 
/admin/core/userregistration/add/ HTTP/1.1" 500 1583 
"https://myapp.appspot.com/admin/core/userregistration/add/" "Mozilla/5.0 
(Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 
(.NET CLR 3.5.30729),gzip(gfe)" "myapp.appspot.com"

E 06-18 11:40AM 27.931
      Uncaught exception: [<type 'exceptions.ValueError'>] The UserRegistration could not be created (Property status is required)

E 06-18 11:40AM 27.931

      Exception in request:
      Traceback (most recent call last):
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/core/handlers/base.py", line 92, in get_response
          response = callback(request, *callback_args, **callback_kwargs)
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/contrib/admin/options.py", line 232, in wrapper
          return self.admin_site.admin_view(view)(*args, **kwargs)
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/views/decorators/cache.py", line 44, in _wrapped_view_func
          response = view_func(request, *args, **kwargs)
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/contrib/admin/sites.py", line 186, in inner
          return view(request, *args, **kwargs)
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/contrib/admin/options.py", line 724, in add_view
          new_object = self.save_form(request, form, change=False)
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/contrib/admin/options.py", line 557, in save_form
          return form.save(commit=False)
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/forms/models.py", line 396, in save
          fail_message, commit, exclude=self._meta.exclude, initialize=initialize)
        File "/base/data/home/apps/myapp/1.342759851270972240/appengine_django_patch/common/zip-packages/django-1.1.zip/django/forms/models.py", line 72, in save_instance
          (opts.object_name, fail_message, err))
      ValueError: The UserRegistration could not be created (Property status is required)

Original issue reported on code.google.com by rob.hen...@gmail.com on 18 Jun 2010 at 6:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The admin interface is not supposed to be used to add UserRegistration directly.
Those get added automatically when someone enrolls for a session.

Original comment by ir...@google.com on 5 Nov 2010 at 2:47