We are running into the same in Ginkgo with openassessment. When 
submissions are made through Studio, they end up being stored with user_id 
'student'. Then when the LMS loads them up, it tries to make the relation 
with 'student' in the database and it obviously doesn't exist. 

On Monday, August 3, 2015 at 11:28:10 AM UTC-5, Omar Isai González Cerón 
wrote:
>
> When i erase a user from django admin this error it's made in the cms log. 
> So i need some help in here please.
>
>
>
> Aug  3 11:17:58 edx2 [service_variant=cms][django.request][env:sandbox] 
> ERROR [edx2  26868] [base.py:213] - Internal Server Error: /admin/auth/user/
>
> Traceback (most recent call last):
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>  
> line 109, in get_response
>
>     response = callback(request, *callback_args, **callback_kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/admin/options.py",
>  
> line 399, in wrapper
>
>     return self.admin_site.admin_view(view)(*args, **kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py",
>  
> line 91, in _wrapped_view
>
>     response = view_func(request, *args, **kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/cache.py",
>  
> line 89, in _wrapped_view_func
>
>     response = view_func(request, *args, **kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
>  
> line 196, in inner
>
>     return view(request, *args, **kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py",
>  
> line 25, in _wrapper
>
>     return bound_func(*args, **kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py",
>  
> line 91, in _wrapped_view
>
>     response = view_func(request, *args, **kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py",
>  
> line 21, in bound_func
>
>     return func(self, *args2, **kwargs2)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/admin/options.py",
>  
> line 1202, in changelist_view
>
>     response = self.response_action(request, 
> queryset=cl.get_query_set(request))
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/admin/options.py",
>  
> line 941, in response_action
>
>     response = func(self, request, queryset)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/admin/actions.py",
>  
> line 47, in delete_selected
>
>     queryset.delete()
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py",
>  
> line 514, in delete
>
>     collector.delete()
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/deletion.py",
>  
> line 61, in decorated
>
>     func(self, *args, **kwargs)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/deletion.py",
>  
> line 269, in delete
>
>     sender=model, instance=obj, using=self.using
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
>  
> line 172, in send
>
>     response = receiver(signal=self, sender=sender, **named)
>
>   File 
> "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/models.py", 
> line 82, in post_delete_callback
>
>     user_preference.user, sender._meta.db_table, user_preference.key, 
> user_preference.value, None
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/related.py",
>  
> line 350, in __get__
>
>     rel_obj = qs.get(**params)
>
>   File 
> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py",
>  
> line 366, in get
>
>     % self.model._meta.object_name)
>
> DoesNotExist: User matching query does not exist.
>

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/dbeccf08-3524-4eaf-8b98-8f5019a4d09c%40googlegroups.com.

Reply via email to