Re: Adding a verbose_name to id field

2020-02-10 Thread Jason
Hmm. TIL about https://code.djangoproject.com/ticket/8576 Would a a uuid for this, rather than an integer? If not, you'll have to implement a save override to handle the incrementing yourself. In addition, it might be worthwhile bringing this ticket up for discussion at https://groups.google.

Re: Adding a verbose_name to id field

2020-02-10 Thread Bruckner de Villiers
.comments.filter(approved_comment=True)     def get_absolute_url(self):     print(self.pk)     return reverse("bugs/bug_detail",kwargs={'pk':self.pk})     def __str__(self):     return self.bug_title Thanks for your attention to date. Bruckner de V

Re: Adding a verbose_name to id field

2020-02-09 Thread Jason
You just need to use AutoField -- 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

Re: Adding a verbose_name to id field

2020-02-09 Thread Bruckner de Villiers
om: * on behalf of Mike Dewhirst > > *Reply to: * > *Date: *Saturday, 08 February 2020 at 13:48 > *To: * > *Subject: *RE: Adding a verbose_name to id field > > I imagine you need to specify the id field in your model and give it a > verbose name.

Re: Adding a verbose_name to id field

2020-02-08 Thread Mike Dewhirst
ply to: * *Date: *Saturday, 08 February 2020 at 13:48 *To: * *Subject: *RE: Adding a verbose_name to id field I imagine you need to specify the id field in your model and give it a verbose name. This is an unusual requirement. Why do you want to do such a thing? Mike Original message

Re: Adding a verbose_name to id field

2020-02-08 Thread Jason
? > > > > Bruckner de Villiers > > 083 625 1086 > > > > *From: *> on behalf of Mike > Dewhirst > > *Reply to: *> > *Date: *Saturday, 08 February 2020 at 13:48 > *To: *> > *Subject: *RE: Adding a verbose_name to id field > > > >

Re: Adding a verbose_name to id field

2020-02-08 Thread Bruckner de Villiers
merely requires an explanatory field text. Make sense? Bruckner de Villiers 083 625 1086 From: on behalf of Mike Dewhirst Reply to: Date: Saturday, 08 February 2020 at 13:48 To: Subject: RE: Adding a verbose_name to id field I imagine you need to specify the id field in your

RE: Adding a verbose_name to id field

2020-02-08 Thread Mike Dewhirst
: Adding a verbose_name to id field Using Sqlite3 & Django 3.0.2 - I have searched high and low, but can’t find a way to add a verbose name to the id of a model.Anyone have ideas, please? Bruckner de Villiers+27 83 625 1086 -- You received this message because you are subscribed to the Go

Adding a verbose_name to id field

2020-02-08 Thread Bruckner de Villiers
Using Sqlite3 & Django 3.0.2 - I have searched high and low, but can’t find a way to add a verbose name to the id of a model. Anyone have ideas, please? Bruckner de Villiers +27 83 625 1086 -- You received this message because you are subscribed to the Google Groups "Django users" group.