- App Engine lacks an equivalent to Django's SlugField property. This code is a (very rough) attempt at creating such a property for App Engine.
Three important points should be kept in mind when using this. One is that this is not heavily tested. It has worked for me so far, but only in minor testing situations. Two, realize that the slug is automatically calculated every time, so do not count on the slug to be stable if the property you attach it to changes. And three, do not try to access the slug field until you have put the model instance into the datastore! Because of the information given by App Engine to the default_value method it prevents the calculation of the slug from the property being relied upon.
Sign in to leave a comment.