Skip to content
Browse files

Allow per-renderer CrudModels

  • Loading branch information...
1 parent 283651d commit 22dd64cfeb55033deef0f8d558789b3c2c441fae @brendonh committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 warp/crud/render.py
View
4 warp/crud/render.py
@@ -19,9 +19,9 @@
class CrudRenderer(object):
- def __init__(self, model):
+ def __init__(self, model, crudModel=None):
self.model = model
- self.crudModel = helpers.getCrudClass(model)
+ self.crudModel = crudModel or helpers.getCrudClass(model)
self.tinyTemplate = None
def getTinyTemplate(self):

0 comments on commit 22dd64c

Please sign in to comment.
Something went wrong with that request. Please try again.