Skip to content

Commit 24be357

Browse files
committed
Merge pull request #12 from timlinux/master
get_all_attribute_slugs bug fix
2 parents 17a0bf4 + c373704 commit 24be357

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

eav/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ class Attribute(models.Model):
107107
number of children, number of patients, has fever?, etc...
108108
109109
Each attribute has a name, and a description, along with a slug that must
110-
be unique. If you don't provide a slug, a default slug (derrived from
110+
be unique. If you don't provide a slug, a default slug (derived from
111111
name), will be created.
112112
113113
The *required* field is a boolean that indicates whether this EAV attribute
114-
is required for entitys to which it applies. It defaults to *False*.
114+
is required for entities to which it applies. It defaults to *False*.
115115
116116
.. warning::
117117
Just like a normal model field that is required, you will not be able
@@ -485,7 +485,7 @@ def get_all_attribute_slugs(self):
485485
'''
486486
Returns a list of slugs for all attributes available to this entity.
487487
'''
488-
return self.get_all_attributes().values_list('slug', Flat=True)
488+
return self.get_all_attributes().values_list('slug', flat=True)
489489

490490
def get_attribute_by_slug(self, slug):
491491
'''

0 commit comments

Comments
 (0)