Skip to content

Instantly share code, notes, and snippets.

function ticketFormResponse (event, is_note) {
event.preventDefault();
var $form = $(event.target).closest('form')
if(is_note) {
url = '/tickets/ajax/note';
} else {
url = '/tickets/ajax/reply';
}
$.post(url,
$form.serializeArray(),
ValueError at /tickets/ajax/reply
The TicketRelated could not be created because the data didn't validate.
Request Method: POST
Request URL: http://cs.dmr.internal/tickets/ajax/reply
Django Version: 1.3
Exception Type: ValueError
Exception Value:
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript">
</script>
<script type="text/css">
label.crossedout { text-decoration: line-through; }
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''ALTER TABLE customerservice.auth_group CONVERT TO CHARACTER SET utf8 COLLATE ut' at line 1
@dradetsky
dradetsky / q0
Created September 12, 2012 20:52
queryz
SELECT `tickets_category`.`id`,
`tickets_category`.`name`
FROM `tickets_category`
INNER JOIN `users_profile_categories` ON (`tickets_category`.`id` = `users_profile_categories`.`category_id`)
INNER JOIN `users_profile` ON (`users_profile_categories`.`profile_id` = `users_profile`.`id`)
WHERE `users_profile`.`user_id` IN
(SELECT U0.`id`
FROM `auth_user` U0
WHERE NOT ((U0.`id` IN
(SELECT U0.`id`
{"results":[{"memberId":"34949","key":"61d8b53499253d0976b8a4e88420b7d2","profileId":"34982","profileStub":{"profileId":"34982","memberId":"34949","name":"Paul ","isMe":"1","isFavorite":"0","isAdmirer":"0","hasPhotoThumbnail":"0"}}]}<!-- JavaScript -->
<script type="text/javascript">
var PQP_DETAILS = true;
var PQP_HEIGHT = "short";
addEvent(window, 'load', loadCSS);
function changeTab(tab) {
var pQp = document.getElementById('pQp');
hideAllTabs();

some words 1 some more words [note]

Footnotes

  1. foo [note]: bar

See Also
========
My blog_post_ announcing the package. Further announcements (there'll probably be at
least one) will be tagged marshmallow-select_
.. _blog_post: https://dradetsky.github.io/marshmallow-select.html
.. _marshmallow-select: https://dradetsky.github.io/tags/marshmallow-select.html

See Also

My blog_post announcing the package. Further announcements (there'll probably be at least one) will be tagged marshmallow-select

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.agile.com/ais/export" xmlns:ais="http://www.agile.com/ais" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:exp90="http://www.agile.com/2003/04/ais/export" xmlns:impl="http://www.agile.com/ais/export" xmlns:intf="http://www.agile.com/ais/export" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.agile.com/ais" xmlns:ais="http://www.agile.com/ais" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://xml.apache.org/xml-soap"/>
<import namespace="http://www.agile.com/2003/04/ais/export"/>
<xs:complex