← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands-website/wlimages_rework into lp:widelands-website

 

Thanks for looking into it :-)

Regarding to 'imagename = forms.ImageField(max_length=90)'

'imagename' is needed for the function (added also a comment there):

    def clean_imagename( self ):
        # clean_<name_of_fieldvar>() acts only for this specific field

Django uses theses kind of things in some places... Took me some time to fiddle this out...

See: https://docs.djangoproject.com/en/1.8/ref/forms/validation/#cleaning-a-specific-field-attribute
And also (for model instances): https://docs.djangoproject.com/en/1.8/ref/models/instances/#extra-instance-methods
-- 
https://code.launchpad.net/~widelands-dev/widelands-website/wlimages_rework/+merge/311985
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands-website/wlimages_rework into lp:widelands-website.


References