Put this inside and below if your model
Def __str__(self):
return self.what-ever-name-you-want
On Mon, 15 Feb, 2021, 10:01 am Agni Venus, wrote:
> Put this below the model...
> Add
> Def __str__(self):
> return self.what-ever-name-you-want
>
> On Mon, 15 Feb, 2021, 1
Put this below the model...
Add
Def __str__(self):
return self.what-ever-name-you-want
On Mon, 15 Feb, 2021, 10:00 am Agni Venus, wrote:
> Add
> Def __str__(self):
> return self.what-ever-name-you-want
>
> On Sun, 14 Feb, 2021, 9:00 pm sebasti...@gmail.com, <
> sebastian.j
Add
Def __str__(self):
return self.what-ever-name-you-want
On Sun, 14 Feb, 2021, 9:00 pm sebasti...@gmail.com, <
sebastian.ju...@gmail.com> wrote:
> Hello,
>
> i have installed per pip django-filters.
>
> Models.py:
>
> class Productinterests(models.Model):
> id =
data donot save anything when i input it from the website page.
my views.py code
from django.shortcuts import render
from django.core.files.storage import FileSystemStorage
from .models import profile
def home(request):
up=profile.objects.all()
return render(request, 'home.html' ,{ 'up':up })
4 matches
Mail list logo