Hi all,
How can we create read-only or the non-editable fields in the admin panel? Following is a code snippet from my model:
class AnswerVote(db.Model):
answer = db.ReferenceProperty(Reply,required = True,editable= False)
vote = db.BooleanProperty(default = False,editable= False)
voter = db.ReferenceProperty(User,editable= False)
I have tried editable = False and readonly_fields but nothing seems to work.
I am getting an error message: __init__()
got an unexpected keyword argument 'editable'.
Do these things not work on App engine? and if yes, is there an alternative for the same?
Please suggest.
Thanks in advance.