Yes, you can rename the kind of a class. Just make sure that any non-class bound GQL you have written are adjusted. In other words, where you have used db.gql vs. db.Model.gql.
On Oct 22, 10:52 am, gae123 <[email protected]> wrote: > NickandRafe, > > this is great to know. Am I correct to assume that this gives us an > easy way to rename classes? Let's say I had this: > > class Foo(db.Model): > .... > > and want to rename it to Bar in my code but I have an app already > running with lots of data. I can just say: > > class Bar(db.Model): > �...@classmethod > def kind(cls): > return 'Foo' > > ... > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
