Skip to content

Commit e979ffb

Browse files
committed
make the old twitter example internally consistent again (see twitty2 for the beginning of the future)
1 parent a188bd5 commit e979ffb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

examples/twitty.py

-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
dev_cluster = Cluster('Dev Cluster')
44
twitty_keyspace = Keyspace('Twitty', dev_cluster)
55

6-
ALLTWEETS_KEY = '!ALLTWEETS!' # virtual user that receives all tweets
7-
86
class User(Model):
97
"""A Model is stored and retrieved by its RowKey.
108
Every Model has exactly one RowKey and one or more other Fields"""
@@ -18,8 +16,6 @@ class Tweet(Model):
1816
uuid = RowKey(autogenerate=True) # generate a UUID for us.
1917
message = UnicodeField()
2018
author = ForeignKey(foreign_class=User, mandatory=True)
21-
22-
alltweets = AllIndex()
2319

2420
class TweetsSent(Index):
2521
by_username = RowKey()

0 commit comments

Comments
 (0)