Hi Peter, There is no official way of doing this, but you can probably try to override the load_value() function and have it return some default text if not otherwise specified.
I'd be happy to take a patch that implements default values cleanly. Christian -- Christian Hammond - [email protected] Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On September 23, 2014 at 3:33:53 PM, Peter Williams ([email protected]) wrote: > Hello RB users / admins, > > Is there a way to specify default text within a BaseTextAreaField? > > My current field looks something like below: > > > from reviewboard.reviews.fields import BaseTextAreaField > > > class OutputField(BaseTextAreaField): > field_id = testme' > label = 'test label' > > I couldn't see any mention of this in the API and digging through the code > suggests that you can't but I may be wrong. > > Thanks for any help. > > -P > > > > > > -- > Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ > --- > Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ > --- > Happy user? Let us know at http://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" > group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
