Skip to content
Snippets Groups Projects
Verified Commit 7083b335 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Reword comments in _safe_add to reflect new behaviour

parent d5bfc586
No related branches found
No related tags found
1 merge request!129Let model extensions define new fields
Pipeline #685 failed
......@@ -56,11 +56,11 @@ class ExtensibleModel(models.Model):
else:
raise ValueError("%s is not a valid name." % name)
# Verify that property name does not clash with other names in the class
# Verify that attribute name does not clash with other names in the class
if hasattr(cls, prop_name):
raise ValueError("%s already used." % prop_name)
# Add function wrapped in property decorator if we got here
# Let Django's model magic add the attribute if we got here
cls.add_to_class(name, obj)
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment