Hi Anselme,

On 24/05/2020 17.48, Anselme SERI wrote:

I try  to to write a correct function for my model which  generate a str + incremental number according last id model.


Your code is obviously wrong for quite a few reasons, but I at least simply cannot understand what you are trying to achieve.

What should the "correct function" do?

The id field of a model is already incremental. Do you simply want to append that to a string and what do you want to do with that string?

Kind regards,

Kasper Laudrup

--
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/65ffe493-1190-619a-f904-fbe35b60e3e3%40stacktrace.dk.

Reply via email to