Re: Custom Model field, to_python() / from_db_value() and unittests...

2015-06-17 Thread Jens Diemer
to write a portable third-party field. Thanks for you suggestion. I "moved" it to django-user list ;) -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django

Re: Custom Model field, to_python() / from_db_value() and unittests...

2015-06-17 Thread Jens Diemer
wo examples and leave only the six.with_metaclass() example?!? I made also a ticket/pull request for this: * https://code.djangoproject.com/ticket/24992 * https://github.com/django/django/pull/4873 On Tuesday, June 16, 2015 at 12:30:05 PM UTC-4, Jens Diemer wrote:

Custom Model field, to_python() / from_db_value() and unittests...

2015-06-16 Thread Jens Diemer
tests.TestModel1Tests) ... ok *** 1.8.x with Py3 test_custom_model_field (custom_model_fields.tests.TestModel1Tests) ... ok test_values (custom_model_fields.tests.TestModel1Tests) ... ok *** master with Py2 - doesn't run: Traceback (most recent call last): File "/home/jens/PyLucid_env/src/django/tests/runtests.py"

form validation in contrib.auth

2015-05-12 Thread Jens Diemer
not valid. -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email

contrib.contenttypes.generic importing from contrib.admin causing trouble

2012-11-05 Thread Jens Ådne Rydland
anything else. And I guess this could be considered a too obscure corner case to care about, but would appreciate some feedback anyway. -- Jens Ådne Rydland -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Adding Support for PyMySQL (for Python 3)

2011-12-08 Thread Jens Diemer
/browse_thread/thread/cbef429d014c1ad9/ -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubs

Re: The state of per-site/per-view middleware caching in Django

2011-10-20 Thread Jens Diemer
[2] https://docs.djangoproject.com/en/1.3/topics/cache/#the-per-site-cache Mfg. Jens D. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from th

Re: CSRF token not validated?

2011-09-13 Thread Jens Diemer
. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developer

CSRF token not validated?

2011-09-12 Thread Jens Diemer
, 'ignore'))) if token == "": # In case the cookie has been truncated to nothing at some point. return _get_new_csrf_key() ------ -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this

Re: PHP-inspired user-friendly in-browser DJango install

2011-09-09 Thread Jens Diemer
.pylucid.org/permalink/333/1a1-create-a-pylucid-environment-with-pylucid-boot> -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django

Re: Suppressed template errors in admin

2011-09-06 Thread Jens Diemer
_IF_INVALID, but it's excluded from django admin ;) -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To

widget attribute order and unittests...

2011-05-17 Thread jens
s://gist.github.com/976467 Should i open a ticked for this? Mfg. Jens D. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, s

Re: Adding optional SITE_DOMAIN and SITE_NAME variables in settings.py

2010-03-15 Thread jens
On Mar 15, 3:44 pm, Yuri Baburov wrote: > How do you like the following idea: > startproject command puts a fixture for django.contrib.sites (and > fixture for superuser probably) to the root folder or whatever, to be > loaded with syncdb? IMHO it would be a great, if django

Re: dbsettings, and user configurable app settings

2010-03-11 Thread jens
pass To access the settings, e.g.: from django.conf import settings def foobar_view(request): var1 = settings.FOO.VAR1 var2 = settings.FOO.VAR2 ... ---- [1] http://cod

Calling update() on EmptyQuerySet updates all rows in database

2009-11-03 Thread Jens Ådne Rydland
t;bar". If I do Foo.objects.none().count() I get the expected result 0. However, Foo.objects.none().update(bar='baz') returns 42, and all 42 rows in the database have been updated. This seems to be caused by EmptyQuerySet not overriding update(), shouldn't this just return 0? -- best regards,