Sha256: adf9633d7f96e2f1cf7efdcefc13b48af5b201d7e51544cf789ca492a85accf9
Contents?: true
Size: 407 Bytes
Versions: 20
Compression:
Stored size: 407 Bytes
Contents
from google.appengine.ext import db <% if belongs_tos.length > 0 -%> import <%= belongs_tos.join(", ") %> <% end -%> class <%= class_name %>(db.Model): <% for attribute in attributes -%> <%= attribute.name %> = db.<%= attribute.gae_type %>(<%= attribute.gae_default %>) <% end -%> <% for model in belongs_tos -%> <%= model %> = db.ReferenceProperty(<%= model %>.<%= model.camelcase %>) <% end -%>
Version data entries
20 entries across 20 versions & 6 rubygems