skip to main
|
skip to sidebar
Django talk
Wednesday, June 29, 2011
Re: getting objects unique in several ways (annotate?)
Dnia 2011-06-29, śro o godzinie 16:31 -0700, elliot pisze:
> Book.objects.annotate(mostrecent = Max('transaction__start_date'))
.values('pk')
Or whatever values you want.
--
Michał Sawicz <
michal@sawicz.net
>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2024
(884)
►
December
(78)
►
November
(73)
►
October
(139)
►
September
(132)
►
August
(19)
►
July
(19)
►
June
(7)
►
May
(7)
►
April
(6)
►
March
(117)
►
February
(285)
►
January
(2)
►
2023
(624)
►
November
(11)
►
October
(52)
►
September
(14)
►
August
(35)
►
July
(55)
►
June
(54)
►
May
(134)
►
April
(114)
►
March
(122)
►
February
(9)
►
January
(24)
►
2022
(1775)
►
December
(61)
►
November
(273)
►
October
(216)
►
September
(393)
►
August
(274)
►
July
(169)
►
June
(32)
►
May
(7)
►
April
(6)
►
March
(24)
►
February
(173)
►
January
(147)
►
2021
(2886)
►
December
(60)
►
November
(27)
►
October
(45)
►
September
(24)
►
August
(31)
►
July
(193)
►
June
(603)
►
May
(442)
►
April
(387)
►
March
(435)
►
February
(348)
►
January
(291)
►
2020
(7609)
►
December
(465)
►
November
(218)
►
October
(420)
►
September
(546)
►
August
(593)
►
July
(659)
►
June
(759)
►
May
(1010)
►
April
(702)
►
March
(701)
►
February
(873)
►
January
(663)
►
2019
(7763)
►
December
(562)
►
November
(638)
►
October
(612)
►
September
(633)
►
August
(651)
►
July
(604)
►
June
(635)
►
May
(744)
►
April
(714)
►
March
(682)
►
February
(600)
►
January
(688)
►
2018
(7433)
►
December
(464)
►
November
(772)
►
October
(705)
►
September
(518)
►
August
(752)
►
July
(720)
►
June
(609)
►
May
(691)
►
April
(488)
►
March
(492)
►
February
(488)
►
January
(734)
►
2017
(5842)
►
December
(509)
►
November
(470)
►
October
(343)
►
September
(474)
►
August
(436)
►
July
(393)
►
June
(504)
►
May
(617)
►
April
(506)
►
March
(553)
►
February
(494)
►
January
(543)
►
2016
(5793)
►
December
(439)
►
November
(406)
►
October
(376)
►
September
(347)
►
August
(653)
►
July
(489)
►
June
(446)
►
May
(496)
►
April
(513)
►
March
(454)
►
February
(666)
►
January
(508)
►
2015
(7015)
►
December
(413)
►
November
(525)
►
October
(475)
►
September
(455)
►
August
(551)
►
July
(596)
►
June
(530)
►
May
(630)
►
April
(639)
►
March
(789)
►
February
(602)
►
January
(810)
►
2014
(8097)
►
December
(702)
►
November
(789)
►
October
(753)
►
September
(740)
►
August
(759)
►
July
(704)
►
June
(631)
►
May
(754)
►
April
(529)
►
March
(537)
►
February
(580)
►
January
(619)
►
2013
(10100)
►
December
(516)
►
November
(635)
►
October
(836)
►
September
(742)
►
August
(862)
►
July
(939)
►
June
(848)
►
May
(967)
►
April
(990)
►
March
(984)
►
February
(862)
►
January
(919)
►
2012
(12829)
►
December
(824)
►
November
(874)
►
October
(980)
►
September
(1063)
►
August
(1032)
►
July
(1122)
►
June
(1109)
►
May
(1254)
►
April
(1201)
►
March
(1189)
►
February
(1133)
►
January
(1048)
▼
2011
(14283)
►
December
(872)
►
November
(1050)
►
October
(1125)
►
September
(1004)
►
August
(1316)
►
July
(1292)
▼
June
(1275)
Re: How to use the django-users mailing list prope...
Re: Global generic files? Best practice(s)?
Re: JQuery .load() works in production but fails i...
Re: Implementing a User Search Feature
Different urlpatterns for different subdomains
JQuery .load() works in production but fails in de...
Stay on a step in a form wizard until the user is ...
Re: can i control select column order in a queryset?
Re: OperationalError: no connection to the server ...
Re: Weird join conditions
Re: Weird join conditions
Re: Drop down box in django getting populated from...
Re: Open source Django websites
Re: Deferred fields
Re: Implementing a User Search Feature
Django AJAX polling: Best practice?
Deferred fields
Re: forms and form processing
Re: Implementing a User Search Feature
Re: Drop down box in django getting populated from...
Re: Implementing a User Search Feature
Implementing a User Search Feature
Drop down box in django getting populated from a d...
django.contrib.admin - custom css class in result_...
Re: More than one project using the same database
Re: giving download links
Re: More than one project using the same database
Re: More than one project using the same database
Re: Problem with Tutorial 1 - Django Version = 1.3
Re: Installing requirements in a virtualenv works ...
Re: More than one project using the same database
Weird join conditions
Re: More than one project using the same database
Re: More than one project using the same database
Installing requirements in a virtualenv works when...
Re: "attempt to write a readonly database" with wr...
Re: ImportError: No module named site
Re: Problem with Tutorial 1 - Django Version = 1.3
Re: Problem with Tutorial 1 - Django Version = 1.3
Re: Problem with Tutorial 1 - Django Version = 1.3
Re: Problem with Tutorial 1 - Django Version = 1.3
Problem with Tutorial 1 - Django Version = 1.3
Re: Possible interest in a webcast/presentation ab...
Re: Global generic files? Best practice(s)?
Re: Activating HTML error emails while keeping log...
Re: Possible interest in a webcast/presentation ab...
Re: More than one project using the same database
Re: More than one project using the same database
More than one project using the same database
Re: ImportError: No module named site
Re: getting objects unique in several ways (annota...
db shardning
Re: forms and form processing
Managing objects spred among several tables/databa...
Re: Possible interest in a webcast/presentation ab...
Re: unable to import Modules Present in subdirect...
Re: Comparing ManyToManyFields
Re: Comparing ManyToManyFields
Re: ImportError: No module named site
Re: Possible interest in a webcast/presentation ab...
Re: getting objects unique in several ways (annota...
getting objects unique in several ways (annotate?)
How to make comment view redirect me directly to m...
Re: Global generic files? Best practice(s)?
Re: let the users download files
ImportError: No module named site
Re: Global generic files? Best practice(s)?
Re: unable to import Modules Present in subdirectores
Re: "attempt to write a readonly database" with wr...
Re: Possible interest in a webcast/presentation ab...
Re: unable to import Modules Present in subdirectores
"attempt to write a readonly database" with write ...
Media (JS/CSS) handling outsite Forms
Vs: how to override a ModelChoiceField in order to...
Re: unable to import Modules Present in subdirectores
Re: unable to import Modules Present in subdirect...
Re: Possible interest in a webcast/presentation ab...
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Database partition strategies and scalability advice
unable to import Modules Present in subdirectores
Re: Curious int/float/division/math 'gotcha' in py...
let the users download files
Comparing ManyToManyFields
forms and form processing
Re: widgets js
Global generic files? Best practice(s)?
Re: django 1.3 timing out on empty POST request
Re: admin search - lookup following GenericForeignKey
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Re: E-store
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
Re: Curious int/float/division/math 'gotcha' in py...
►
May
(1261)
►
April
(1157)
►
March
(1375)
►
February
(1232)
►
January
(1324)
►
2010
(9629)
►
December
(1175)
►
November
(1257)
►
October
(1215)
►
September
(1287)
►
August
(1393)
►
July
(1348)
►
June
(1382)
►
May
(572)
About Me
faw
View my complete profile
No comments:
Post a Comment