I'm getting the following error while trying to access my licenses page
from the admin panel. I have no idea why im getting the error.
ORA-00904: "LICENSES"."CODE": invalid identifier
Here is a describe of my current table:
desc licenses
Name
Null? Type
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------
--------------------------------------------------------------------------------------------------------------------
LICENSE_ID
NOT NULL NUMBER
LICENSE_AUTHORITY_ID
NOT NULL NUMBER
PRODUCT
NOT NULL VARCHAR2(30)
CODE
So I have the following in my models.
class License_authoritie(models.Model):
> license_authority_id = models.BigIntegerField(primary_key = True,
> editable = False, db_column = 'license_authority_id')
> licensing_authority = models.CharField(max_length = 30)
> class Meta:
> managed = False
> db_table = 'license_authorities'
> def __unicode__(self): # Python 3: def __str__(self):
> return self.licensing_authority
>
> class License(models.Model):
> license_id = models.BigIntegerField(primary_key = True, editable =
> False, db_column = 'license_id')
> license_authority = models.ForeignKey(License_authoritie, on_delete =
> models.PROTECT)
> product = models.CharField(max_length = 20)
> code = models.CharField(max_length = 50)
>
> class Meta:
> managed = False
> db_table = 'licenses'
> ordering = ['code']
> def __unicode__(self): # Python 3: def __str__(self):
> return self.code
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/944134f1-31c5-4b2d-b115-eb4ea64b1629%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.