Skip to content

Commit

Permalink
Added verbose_name to BoundRelationship's route
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Jul 3, 2014
1 parent edb768d commit 1587f04
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions neo4django/db/models/relationships.py
Expand Up @@ -149,10 +149,10 @@ def contribute_to_class(self, source, name):
raise TypeError("Relationships may only extend from Nodes.")
self.creation_counter = source.creation_counter

# XXX this is to cover strange situations like accidental overriding
# of abstract models' reverse relationships like issue #190
if hasattr(source, name):
return
# XXX this is to cover strange situations like accidental overriding
# of abstract models' reverse relationships like issue #190
if hasattr(source, name):
return

# make sure this relationship doesn't overlap with another of the same
# type and direction
Expand Down Expand Up @@ -239,6 +239,7 @@ def __init__(self, rel, source, relname, attname, serialize=True):
'meta',
'get_internal_type',
'help_text',
'verbose_name',
'null',
'has_default',
# form handling
Expand Down

0 comments on commit 1587f04

Please sign in to comment.