model: class Batch(models.Model): batch_id = models.AutoField(primary_key=True, default=None) batch_name = models.CharField(max_length=256, default=None, null=True) ... some more fields
views: def organisationEditBatch(request, batch_id): batch = Batch.objects.get(batch_id=batch_id) if request.method == 'POST': batch.batch_name = request.POST.get("batch_name") batch.save() -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/924ac596-824d-410e-bd64-0d7698c2f3fdn%40googlegroups.com.