From 40eb10ce2f113e069d3a80faba9353321a76dd70 Mon Sep 17 00:00:00 2001 From: Jon Haddad Date: Tue, 12 Aug 2014 16:10:32 -0700 Subject: [PATCH] added primary key to examples --- docs/topics/models.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/topics/models.rst b/docs/topics/models.rst index 65453179..d0e1a05f 100644 --- a/docs/topics/models.rst +++ b/docs/topics/models.rst @@ -23,6 +23,7 @@ This example defines a Person table, with the columns ``first_name`` and ``last_ from cqlengine.models import Model class Person(Model): + id = columns.UUID(primary_key=True) first_name = columns.Text() last_name = columns.Text() @@ -145,6 +146,7 @@ Model Methods #using the person model from earlier: class Person(Model): + id = columns.UUID(primary_key=True) first_name = columns.Text() last_name = columns.Text()