Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tbthorpe on github.
  • I am tbthorpe (https://keybase.io/tbthorpe) on keybase.
  • I have a public key whose fingerprint is A87A DD75 A5B5 2088 33DA F332 665B 6581 E0D1 20E0

To claim this, I am signing this object:

sqs = RelatedSearchQuerySet().filter(content=query)
sqs = RelatedSearchQuerySet().filter(content=Raw('*' + query + '*'))
{% if 'take_home' in form.fields %}
{% with field=form.take_home %}
<div id="{{ field.name }}-field"
class="field {% if field.value != 'none' %}hidden{% endif %} {% if field.errors %}error{% endif %}">
<label class="field-label">
{{ field }}
{% blocktrans with type=MULTISITE.item_type %}
I will take the {{ type }} home with me
{% endblocktrans %}
</label>
{% for m in mediums %}
<li class="cat {{ m.slug }} {% if m.id == medium.id %}active {% endif %}>
<a medium="{{m.url_slug}}">{{ m.display_title.title }}</a>
</li>
{% endfor %}
Exception happened during processing of request from ('127.0.0.1', 58308)
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 651, in __init__
self.finish()
(Pdb) type(kwargs['user'])
<class 'django.db.models.base.ModelBase'>