djongo
djongo copied to clipboard
Todo with ID “None” doesn’t exist. Perhaps it was deleted?
i created an simple example to test the plugin, but when i tried to edit some register, it isnt found, but is into the database.
from django.db import models
class Todo(models.Model): task = models.CharField(max_length=30) description = models.CharField(max_length=100)
from django.contrib import admin from .models import *
admin.site.register(Todo)
Register your models here.
I have this issue too
Hey did you find any solution on this I have this same error stuck from a long time
i created an simple example to test the plugin, but when i tried to edit some register, it isnt found, but is into the database.
from django.db import models
class Todo(models.Model): task = models.CharField(max_length=30) description = models.CharField(max_length=100)
from django.contrib import admin from .models import *
admin.site.register(Todo)
Register your models here.
Did you find any solution
Hey did you find any solution on this I have this same error stuck from a long time
If you are still looking for a solution, this helped me.
Didn't work for me.
Not sure you are all having the same problem: I can create a user from the admin page. I can see 'profiles' just below USERS. I create a profile by clicking on the button ADD PROFILE. Hit save, not saved. The same code used to work a year ago, now no luck
. I'm sure the signals are correct, I tested them on the shell. And funny enough, it saves on the shell to forget the profile as soon as I exit
I have this issue, and I don't know why.
But, I just delete the database, and...
python manage.py makemigrations
python manage.py migrate
Then, It works!
use this for id field
worked for me
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)