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

« back to all changes in this revision

Viewing changes to tests/modeltests/basic/models.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:
18
18
 
19
19
    def __str__(self):
20
20
        return self.headline
 
21
 
 
22
@python_2_unicode_compatible
 
23
class SelfRef(models.Model):
 
24
    selfref = models.ForeignKey('self', null=True, blank=True,
 
25
                                related_name='+')
 
26
 
 
27
    def __str__(self):
 
28
        return SelfRef.objects.get(selfref=self).pk