Mercurial > public > sg101
comparison gpp/oembed/models.py @ 572:368d731af479
For Django 1.4, remove verify_exists from model field definitions.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 02 May 2012 20:51:38 -0500 |
parents | 8fd4984d5c3b |
children |
comparison
equal
deleted
inserted
replaced
571:c2ba9c3395da | 572:368d731af479 |
---|---|
15 (JSON, "json"), | 15 (JSON, "json"), |
16 (XML, "xml"), | 16 (XML, "xml"), |
17 ) | 17 ) |
18 | 18 |
19 name = models.CharField(max_length=128) | 19 name = models.CharField(max_length=128) |
20 api_endpoint = models.URLField(max_length=255, verify_exists=False, | 20 api_endpoint = models.URLField(max_length=255, verbose_name='API endpoint') |
21 verbose_name='API endpoint') | |
22 url_regex = models.CharField(max_length=255, verbose_name='URL regex') | 21 url_regex = models.CharField(max_length=255, verbose_name='URL regex') |
23 format = models.IntegerField(choices=FORMAT_CHOICES) | 22 format = models.IntegerField(choices=FORMAT_CHOICES) |
24 | 23 |
25 def __unicode__(self): | 24 def __unicode__(self): |
26 return self.name | 25 return self.name |
37 (VIDEO, "video"), | 36 (VIDEO, "video"), |
38 (LINK, "link"), | 37 (LINK, "link"), |
39 (RICH, "rich"), | 38 (RICH, "rich"), |
40 ) | 39 ) |
41 | 40 |
42 url = models.URLField(max_length=255, verify_exists=False, db_index=True) | 41 url = models.URLField(max_length=255, db_index=True) |
43 type = models.IntegerField(choices=MEDIA_TYPE_CHOICES) | 42 type = models.IntegerField(choices=MEDIA_TYPE_CHOICES) |
44 title = models.CharField(max_length=255, blank=True, default='') | 43 title = models.CharField(max_length=255, blank=True, default='') |
45 width = models.IntegerField() | 44 width = models.IntegerField() |
46 height = models.IntegerField() | 45 height = models.IntegerField() |
47 html = models.TextField() | 46 html = models.TextField() |