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.