Skip to content

Commit 0a15bbe

Browse files
committed
Replaced spammy link with a direct one
1 parent 79d1275 commit 0a15bbe

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

patterns/creational/factory.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212
1313
*Where can the pattern be used practically?
1414
The Factory Method can be seen in the popular web framework Django:
15-
https://shorturl.at/ctMPZ
16-
For example, in a contact form of a web page, the subject and the message
17-
fields are created using the same form factory (CharField()), even
18-
though they have different implementations according to their
19-
purposes.
15+
https://docs.djangoproject.com/en/4.0/topics/forms/formsets/
16+
For example, different types of forms are created using a formset_factory
2017
2118
*References:
2219
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/

0 commit comments

Comments
 (0)