Hi!
Matching query doesn't exists says that this entry with this id not exists
in db....
Are you sure that this object exists? STTK-100G-18040-01-WRBB

Can you open a shell and:

from xxx.models import Circuitinfotable
obj = Circuitinfotable.objects.all()
print(len(obj))
obj = Obj.get(circuitid='STTK-100G-18040-01-WRBB')
print(obj)


Are you following me?
Or confirm that exists via admin?




Missatge de Patrick Carra <pcarra...@gmail.com> del dia dl., 25 de nov.
2019 a les 22:37:

> Sorry I forgot one! My models.py for this class is below:
>
> class Circuitinfotable(models.Model):
>    id1 = models.IntegerField(blank=True, null=True)
>    pid = models.CharField(max_length=255, blank=True, null=True)
>    circuitid = models.CharField(primary_key=True, max_length=255, blank=
> False, null=False)
>    bandwidth = models.CharField(max_length=255, blank=True, null=True)
>    region = models.CharField(max_length=255, blank=True, null=True)
>    bw = models.IntegerField(blank=True, null=True)
>    tableaupathname = models.CharField(max_length=255, blank=True, null=
> True)
>    handoffalocaddress = models.CharField(max_length=255, blank=True, null=
> True)
>    handoffaloccity = models.CharField(max_length=255, blank=True, null=
> True)
>    handoffalocst = models.CharField(max_length=255, blank=True, null=True)
>    alocationaddress = models.CharField(max_length=255, blank=True, null=
> True)
>    alocationcity = models.CharField(max_length=255, blank=True, null=True)
>    alocst = models.CharField(max_length=255, blank=True, null=True)
>    handoffzlocaddress = models.CharField(max_length=255, blank=True, null=
> True)
>    carrier = models.CharField(max_length=255, blank=True, null=True)
>    handoffzloccity = models.CharField(max_length=255, blank=True, null=
> True)
>    handoffzlocst = models.CharField(max_length=255, blank=True, null=True)
>    zlocationaddress = models.CharField(max_length=255, blank=True, null=
> True)
>    zlocationcity = models.CharField(max_length=255, blank=True, null=True)
>    zlocst = models.CharField(max_length=255, blank=True, null=True)
>    segmentid = models.CharField(max_length=255, blank=True, null=True)
>    segmenttype = models.CharField(max_length=255, blank=True, null=True)
>    status = models.CharField(max_length=255, blank=True, null=True)
>    purpose = models.CharField(max_length=255, blank=True, null=True)
>    installdate = models.DateField(blank=True, null=True)
>    termdate = models.DateField(blank=True, null=True)
>    termlengthmos = models.IntegerField(blank=True, null=True)
>    legacy = models.CharField(max_length=255, blank=True, null=True)
>    installciopsticket = models.CharField(max_length=255, blank=True, null=
> True)
>    retermciopsticket = models.CharField(max_length=255, blank=True, null=
> True)
>    discociopsticket = models.CharField(max_length=255, blank=True, null=
> True)
>    notes = models.CharField(max_length=255, blank=True, null=True)
>    kma = models.CharField(max_length=255, blank=True, null=True)
>    group = models.IntegerField(blank=True, null=True)
>    cktidkey = models.IntegerField(blank=True, null=True)
>    visiolink = models.CharField(max_length=255, blank=True, null=True)
>    latestjiraticket = models.CharField(max_length=255, blank=True, null=
> True, unique=True)
>    disconnectdate = models.DateField(blank=True, null=True)
>    segmentname = models.CharField(max_length=255, blank=True, null=True)
>    mrcnew = models.TextField(blank=True, null=True)  # This field type is
> a guess.
>    termyrs = models.IntegerField(blank=True, null=True)
>    monthbudget = models.IntegerField(blank=True, null=True)
>    monthdisco = models.IntegerField(blank=True, null=True)
>    mrcold = models.TextField(blank=True, null=True)  # This field type is
> a guess.
>    kmz = models.CharField(max_length=255, blank=True, null=True)
>
>     class Meta:
>        managed = False
>        db_table = 'circuitinfotable'
>
>     def __str__(self):
>        return self.circuitid
>
>     def get_absolute_url(self):
>        return reverse('home')
>
>
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b407aac9-aec7-4e45-b91a-9864c4be2d80%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b407aac9-aec7-4e45-b91a-9864c4be2d80%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-JoTRKYihP_1DAqOudi5dHfGb5b0pi3%3DtBM04yOZ7-6OoRgA%40mail.gmail.com.

Reply via email to