Skip to content

Commit

Permalink
Change scaffol to include 500 items (better demonstration of panginat…
Browse files Browse the repository at this point in the history
…ion/filtering)
  • Loading branch information
tahajahangir committed Apr 21, 2014
1 parent ed8ecc4 commit ee5c8cf
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -89,9 +89,8 @@ def populate():
session = DBSession()
session.add(ModelGroup(name='Group1'))
session.add(ModelGroup(name='Group2'))
session.add(ModelItem(name='Item 1'))
session.add(ModelItem(name='Item 2'))
session.add(ModelItem(name='Item 3'))
for i in range(500):
session.add(ModelItem(name='Item ' + str(i)))
session.add(MyModel(name=u'test name', value=55, float_value=3.5, interval=timedelta(4), boolean=True))
session.flush()
transaction.commit()
Expand Down

0 comments on commit ee5c8cf

Please sign in to comment.