Thanks, here's what I came up with:

In the model:
class RowidField(models.CharField):
        def __init__(self, *args, **kwargs):
                kwargs['name'] = 'rowid'
                kwargs['max_length'] = 18
                kwargs['primary_key'] = True

                super(RowidField, self).__init__(*args, **kwargs)

class CrefTab(models.Model):
        id = RowidField()
        cref_no = models.CharField(max_length=24)
        ...
        class Meta(SvistaMeta):
             db_table = 'cref_tab'
             managed = False


Then in the view:
        cref_tab_list = CrefTab.objects.all().using('svfe')[:5]
        output = ', '.join([t.cref_no for t in cref_tab_list])
        return HttpResponse(output)

DatabaseError at / 

ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, 
etc.


Unfortunately Django doesn't show the precise statement that caused the 
error.

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

Reply via email to