djongo icon indicating copy to clipboard operation
djongo copied to clipboard

Todo with ID “None” doesn’t exist. Perhaps it was deleted?

Open TlacaelelMtz opened this issue 3 years ago • 7 comments

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.

TlacaelelMtz avatar May 23 '21 23:05 TlacaelelMtz

I have this issue too

jollypolly123 avatar Jul 06 '21 19:07 jollypolly123

Hey did you find any solution on this I have this same error stuck from a long time

iambhushan6 avatar Sep 21 '21 11:09 iambhushan6

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

iambhushan6 avatar Sep 21 '21 11:09 iambhushan6

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.

Dkr0l avatar Sep 23 '21 15:09 Dkr0l

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
no profile. 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

analondon avatar Sep 30 '21 17:09 analondon

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!

daGaiGuanYu avatar Aug 23 '22 02:08 daGaiGuanYu

use this for id field worked for me id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)

amofogh avatar Nov 16 '22 05:11 amofogh