These are chat archives for django/django

7th
Jan 2016
Matthew Schinckel
@schinckel
Jan 07 2016 10:43
@rishu-18 If you have a model instance, you can always use instance.pk
Group.objects.get(name='foo').pk
And you can, alternatively, use Group.objects.get(pk=<pk>) to get an object without knowing the primary key field.
rishu-18
@rishu-18
Jan 07 2016 12:09
thanks @schinckel
Jon Earley
@jonearley
Jan 07 2016 20:08
This message was deleted
This message was deleted