Own Widget as Stadard

9 views
Skip to first unread message

sebasti...@gmail.com

unread,
Aug 1, 2021, 2:12:13 PM8/1/21
to Django users
Hello,

i have a own widget that replace TextInput widget. Now i want everytime when i have in model.py a declaration models.TextField() that these new widget is automatical used in forms.py without everytime manual declared it in forms.py.

Have anyone an idea?

Regards

Christian Ledermann

unread,
Aug 1, 2021, 2:42:44 PM8/1/21
to django...@googlegroups.com
https://adamj.eu/tech/2021/05/05/3-uses-for-functools-partial-in-django/

"Here are a few ways I’ve used partial in Django projects.

1. Making reusable fields without subclassing"


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ab7213ef-2e67-4084-b587-a5002db2ed63n%40googlegroups.com.


--
Best Regards,

Christian Ledermann

Galway, IE
Mobile : +353 (0) 899748838

https://www.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

Sebastian Jung

unread,
Aug 2, 2021, 1:48:02 AM8/2/21
to django...@googlegroups.com
Hello Christian,

Thanks for your response but your solution is not suitable for my problem.

Regards

Reply all
Reply to author
Forward
0 new messages