File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 '''
You can’t perform that action at this time.
0 commit comments