#23917: RuntimeError Conflicting
-------------------------------------+-------------------------------------
     Reporter:  liminspace           |                    Owner:
         Type:  Bug                  |  liminspace
    Component:  Database layer       |                   Status:  closed
  (models, ORM)                      |                  Version:  1.7
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:                       |             Triage Stage:
    Has patch:  0                    |  Unreviewed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by liminspace):

 {{{
 Internal Server Error: /ajax/
 Traceback (most recent call last):
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/core/handlers/base.py", line 111, in get_response
     response = wrapped_callback(request, *callback_args,
 **callback_kwargs)
   File "/home/tc/www/ticket/ticket/views/main.py", line 377, in
 ajax_eventsession
     event__is_active=True, event__is_deleted=False)
   File "/home/tc/www/ticket/utils/db.py", line 18, in get_object_or_None
     return queryset.get(*args, **kwargs)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/query.py", line 351, in get
     num = len(clone)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/query.py", line 122, in __len__
     self._fetch_all()
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/query.py", line 966, in _fetch_all
     self._result_cache = list(self.iterator())
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/query.py", line 264, in iterator
     requested=requested, only_load=only_load)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/query.py", line 1381, in get_klass_info
     requested=next, only_load=only_load)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/query.py", line 1346, in get_klass_info
     klass = deferred_class_factory(klass, skip)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/query_utils.py", line 209, in
 deferred_class_factory
     return type(str(name), (model,), overrides)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/modeltranslation/translator.py", line 265, in __new__
     return super(translation_deferred_mcs, cls).__new__(cls, name, bases,
 attrs)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/db/models/base.py", line 285, in __new__
     new_class._meta.apps.register_model(new_class._meta.app_label,
 new_class)
   File "/home/tc/.virtualenvs/ticket/local/lib/python2.7/site-
 packages/django/apps/registry.py", line 213, in register_model
     (model_name, app_label, app_models[model_name], model))
 RuntimeError: Conflicting
 
'event_deferred_description_description_en_descriae804c3400b52ecb4181ed6574468538'
 models in application 'ticket': <class
 
'ticket.models.event.Event_Deferred_description_description_en_descriae804c3400b52ecb4181ed6574468538'>
 and <class
 
'ticket.models.event.Event_Deferred_description_description_en_descriae804c3400b52ecb4181ed6574468538'>.

 Request repr():
 <WSGIRequest
 path:/ajax/,
 GET:<QueryDict: {}>,
 POST:<QueryDict: {u'action': [u'get_places_status'],
 u'csrfmiddlewaretoken': [u'**************'], u'id': [u'1787']}>,
 COOKIES:{'__utma': '2272.5227.14191.14191.14121.2',
  '__utmb': '22702.10.9.14570',
  '__utmc': '22792',
  '__utmz':
 
'2272.141621.2.2.utmcsr=**********|utmccn=(referral)|utmcmd=referral|utmcct=/events',
  '_ym_visorc_215': 'w',
  'csrf-token': '**************',
  'sessionid': '**************'},
 META:{'CONTENT_LENGTH': '85',
  'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
  u'CSRF_COOKIE': u'**************',
  'DOCUMENT_ROOT': '/etc/nginx/html',
  'HTTP_ACCEPT': '*/*',
  'HTTP_ACCEPT_ENCODING': 'gzip, deflate, lzma',
  'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  'HTTP_CONNECTION': 'keep-alive',
  'HTTP_CONTENT_LENGTH': '85',
  'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
  'HTTP_COOKIE': 'csrf-token=**************;
 __utma=222.5267.14191.1491.14161.2; __utmb=227.10.9.1470; __utmc=22792;
 
__utmz=227014121.2.2.utmcsr=************|utmccn=(referral)|utmcmd=referral|utmcct=/events;
 _ym_visorc_25=w; sessionid=**************',
  'HTTP_HOST': '*********',
  'HTTP_ORIGIN': 'http://*********',
  'HTTP_REFERER': 'http://*********/eventsession/1787/',
  'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36
 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36 OPR/26.0.1656.24
 (Edition Yx)',
  'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  'PATH_INFO': u'/ajax/',
  'QUERY_STRING': '',
  'REMOTE_ADDR': '*********',
  'REMOTE_PORT': '3758',
  'REQUEST_METHOD': 'POST',
  'REQUEST_URI': '/ajax/',
  u'SCRIPT_NAME': u'',
  'SERVER_NAME': '*********',
  'SERVER_PORT': '80',
  'SERVER_PROTOCOL': 'HTTP/1.1',
  'uwsgi.core': 1,
  'uwsgi.node': '*********',
  'uwsgi.version': '1.2.3-debian',
  'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x4158300>,
  'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,
  'wsgi.input': <uwsgi._Input object at 0x7fbd680020b0>,
  'wsgi.multiprocess': True,
  'wsgi.multithread': True,
  'wsgi.run_once': False,
  'wsgi.url_scheme': 'http',
  'wsgi.version': (1, 0)}>
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23917#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.2a72cf3b2498c0b50f4a26af980caa0d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to