Tags » Maks

Don't start a band.

Verscheen in de SOS-pagina van de Maks!, ter illustratieve begeleiding van de vraag ‘Als ik een band wil opstarten, hoe weet ik dan of die bandnaam al bestaat of niet?’ 14 more words

Accessing members of mixin traits

I have the following code in scala:

trait A {
  val foo: String => Int = { in =>

trait B extends A {
  def bar(a: String) = {

class C(a: String) {
  self: B =>

  val b = bar(a)

val x = new C("34") with B
… 24 more words

Django rendering field not working

My model:

class preguntas(models.Model):
pregunta = models.CharField(max_length=200)

My views:

opciones = preguntas.objects.all()
return render_to_response(template, {"pregunta": pregunta, "opciones": opciones})

Supposedly if in the template I write {{ opciones.pregunta }} it should return the field questions , but it doesnt , any idea ? 19 more words


Django invalid literal for int() with base 10 updating m2m fields

My models :

class fichas(models.Model):
    categoria = models.ManyToManyField(categorias)

class categorias(models.Model):
    categ = models.CharField(max_length=100)

Views.py :

already, create = fichas.objects.get_or_create(division=curso)
if fichas.objects.all().filter(categoria__categ=categoria):
    if estado == "active":
… 40 more words

Django rendering model fields renders field name

I have this model:

class categorias(models.Model):
    categ = models.CharField(max_length=100)

    def __str__(self):
        return self.categ

And in the view:

todascategorias = categorias.objects.all()
return render_to_response(template, {"todascategorias": todascategorias}, context_instance=RequestContext(request))
… 35 more words

The 30th of January 1910 – New York, New York

(found by the mask, smudged with some kind of makeup)

I’m sorry Bethany.

You weren’t meant to see that.

If all of this had only gone to plan then you would have never seen me again. 443 more words