All right.
class Book(models.Model):
       code = models.PositiveIntegerField(primary_key=True)
       title = models.CharField(max_length=60,blank=False,null=False)

book = Book()
book.code = 1
book.title = 'Verità'
book.save()

the code is really simple
Il giorno mercoledì 8 giugno 2022 alle 21:07:41 UTC+2 Antonis Christofides 
ha scritto:

> Please provide the minimum code that reproduces the problem, and the full 
> traceback.
>
> Regards,
>
> Antonis
>
>
> On 08/06/2022 18.24, Virgilio Ravagli wrote:
>
> ou must not use 8-bit bytestrings unless you use a text_factory that can 
> interpret 8-bit bytestrings
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cf785c0e-5cfc-4587-b0cd-ea796a62a20bn%40googlegroups.com.

Reply via email to