1. James Robert
  2. django-badges
  3. Issues
Issue #8 new

Creates RuntimeWarning when using USE_TZ=True in Django 1.4

created an issue

The Model BadgeToUser uses a DateTimeField with a naive datetime.now as a default value. This raises a warning on Django 1.4 when using USE_TZ=True (which is default), since Django expects a timezone-aware DateTime.

How about using 'auto_now_add' instead of 'default'?

Comments (0)

  1. Log in to comment