From ca40ec0b4384d7d797462e9287af5fc800d2987b Mon Sep 17 00:00:00 2001 From: Manuel Francisco Naranjo Date: Mon, 27 Jul 2015 16:59:55 -0300 Subject: [PATCH] Updating docs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 977d625..cee7f35 100644 --- a/README.md +++ b/README.md @@ -15,20 +15,20 @@ So far only MySQL is supported as backend, but more could be added if necessary. ) ``` -2. In your models.py create classes which extend dbview.models.DbView +2. In your models.py create classes which extend dbview.models.View like this: ```python from django.db import models - from dbview.models import DbView + from dbview.models import View class ModelA(models.Model): fielda = models.CharField() fieldc = models.IntegerField() - class MyView(DbView): + class MyView(View): fieldA = models.OneToOneField(ModelA, primary_key=True, db_column='fielda__id') fieldB = models.IntegerField(blank=True, null=True, db_column='fieldb')