mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-06 12:26:00 +03:00
Merge pull request #3358 from brittdawn/3357-self-tag-name-to-generic-relationships-docs
Replacing self.tag with self.tag_name in Generic Relationships documentation.
This commit is contained in:
commit
d48ec83688
|
@ -501,7 +501,7 @@ For example, given the following model for a tag, which has a generic relationsh
|
|||
tagged_object = GenericForeignKey('content_type', 'object_id')
|
||||
|
||||
def __unicode__(self):
|
||||
return self.tag
|
||||
return self.tag_name
|
||||
|
||||
And the following two models, which may be have associated tags:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user