Tags » Maks

Masks04: The Plague Doctor's Mask by mpn

Masks04: The Plague Doctor’s Mask by mpn

ink on heavy watercolour paper

from wikipedia:

The plague doctor’s costume was the clothing worn by a plague doctor┬áto protect him from airborne diseases. 214 more words

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 =>
    in.toInt
  }
}

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

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

  val b = bar(a)
}

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

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

Stackoverflow

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":
        already.categoria.add(categoria)
        already.save()
    else:
        already.categoria.remove(categoria)
        already.save()
… 40 more words
Stackoverflow

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
Stackoverflow