I would understand truncating but please take a look:

class DefinedDailyDose(models.Model):
#...
    class Meta:
        db_table = u'mnowotka\".\"defined_daily_dose'
        managed=False

where the name is even longer

DefinedDailyDose.objects.exists()

gives:

SELECT *
FROM
  (SELECT ROWNUM AS "_RN",
          "_SUB".*
   FROM
     (SELECT (1) AS "A"
      FROM "MNOWOTKA"."DEFINED_DAILY_DOSE") "_SUB"
   WHERE ROWNUM <= 1)
WHERE "_RN" > 0  [1.45ms]

Which is perfectly correct.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/MWjEaQMZgn8J.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to