mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Removed more stray tabs in Python files.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
41c30f2fb8
commit
9fab1467c7
4 changed files with 17 additions and 17 deletions
|
@ -98,18 +98,18 @@ class UserProxyProxy(UserProxy):
|
|||
|
||||
# We can still use `select_related()` to include related models in our querysets.
|
||||
class Country(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
name = models.CharField(max_length=50)
|
||||
|
||||
class State(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
country = models.ForeignKey(Country)
|
||||
name = models.CharField(max_length=50)
|
||||
country = models.ForeignKey(Country)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
class StateProxy(State):
|
||||
class Meta:
|
||||
proxy = True
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
# Proxy models still works with filters (on related fields)
|
||||
# and select_related, even when mixed with model inheritance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue