~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlimages/views.py

  • Committer: franku
  • Date: 2019-04-11 15:20:33 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411152033-wtpkgd783vnv2j4b
replaced renamed functions and __unicode__ with __str__

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
    # Get the App (model) to which this image belongs to:
39
39
    app = ContentType.objects.get(id=content_type)
40
 
    # Get the current object's name (provided by __unicode__()) from this model
 
40
    # Get the current object's name (provided by __str__()) from this model
41
41
    name = app.get_object_for_this_type(id=object_id)
42
42
 
43
43
    return render(request, 'wlimages/upload.html', {