$(window).ready(function () {
$("#somebutton").click(function(){
$.get("test/", {}, function (data) {
$("#somediv").html(data);
});
});
});
class Message(models.Model):
text = models.TextField()
manager = models.ForeignKey(Manager, models.SET_NULL, null=True, related_name="messages")
somemanager=Manager.objects.first()
messages=somemanager.messages