~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to django/db/models/fields/related.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2013-08-13 16:49:39 UTC
  • mfrom: (1.1.22) (4.4.28 sid)
  • Revision ID: package-import@ubuntu.com-20130813164939-ct6oweybhkuyq4tt
Tags: 1.5.2-1
* New upstream security release.
  https://www.djangoproject.com/weblog/2013/aug/13/security-releases-issued/
  - Cross-site scripting (XSS) in admin interface
  - Possible XSS via is_safe_url

Show diffs side-by-side

added added

removed removed

Lines of Context:
1172
1172
        'verbose_name_plural': '%(from)s-%(to)s relationships' % {'from': from_, 'to': to},
1173
1173
    })
1174
1174
    # Construct and return the new class.
1175
 
    return type(name, (models.Model,), {
 
1175
    return type(str(name), (models.Model,), {
1176
1176
        'Meta': meta,
1177
1177
        '__module__': klass.__module__,
1178
1178
        from_: models.ForeignKey(klass, related_name='%s+' % name, db_tablespace=field.db_tablespace),