You see, I have created a model which is used to link a comment to a user.
This is the code models.py:
class mensajeria(models.Model):
texto=RichTextField(max_length=300)
usuario=models.OneToOneField(User)
def __srt__(self):
return self.usuario.username
The administrator should see who the user is, but for some error it does not show what I have in the function __srt__
:
This error is very strange.
Edit: This also affects the shell.
I add: For a moment I managed to make the table show, but now it happens that I get this error: no such table: science_message. It seems to be an error due to the foreign key.