Π“Ρ€Π°Ρ„ ΠΊΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

41 ΠšΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

Автор SHA1 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ Π”Π°Ρ‚Π°
Jeff Balogh 483adcbcf5 use the db_table for search indexes, not app_label 2011-07-29 12:18:00 -07:00
Jeff Balogh 51da184cef start using the new featured/creatured managers 2011-07-29 10:02:04 -07:00
Jeff Balogh 655f9d1126 update the index in realtime 2011-06-13 13:38:05 -07:00
Jeff Balogh 5254cda060 refactoring 2011-06-13 13:37:30 -07:00
Jeff Balogh 406065423c add SearchMixin helper to amo.ModelBase 2011-05-23 15:30:16 -07:00
Jeff Balogh dab701f155 unhide disabled files if they are undisabled (bug 634341) 2011-03-03 09:16:30 -08:00
Kumar McMillan ff7f11e1ca Fixes mistake in how Addon.update() was overridden in change handler. 2011-02-26 13:30:12 -06:00
Kumar McMillan 43bc1b94c2 Adds Model.on_change(callback) to watch changes. Like signals but better. 2011-02-25 19:10:03 -06:00
Jeff Balogh de6f4fad7d hit caches better, fetch less data, do fewer queries 2011-01-13 14:23:34 -08:00
Jeff Balogh b3b7045f5a send pre_delete signals with Model.update 2011-01-11 10:54:23 -08:00
Jeff Balogh 0698024b65 Translation can inherit from amo.ModelBase now 2011-01-10 18:28:33 -08:00
Andy McKay c0ccbef35c upgrade to latest django (bug 612467) 2010-11-19 10:39:34 -08:00
Jeff Balogh 6f1e68e875 context managers should exit with the state they found 2010-09-28 13:27:30 -07:00
Jeff Balogh e551cd5540 skip the query cache for transforms 2010-09-24 17:19:44 -07:00
Jeff Balogh ccce329f25 <model>.update() is a fast way to update attributes 2010-09-22 11:57:13 -07:00
Jeff Balogh 0af82fe265 context managers for hitting master and turning off caching 2010-09-03 11:40:49 -07:00
Wil Clouser a77196e59b Invalidate the front end cache when we save objects 2010-07-26 13:11:43 -07:00
Jeff Balogh 71be3add5a only add the extra when it's with translations 2010-06-04 13:44:20 -07:00
Jeff Balogh d27dbd976f add the locale to objects with translations for uniqueness
Since cache machine doesn't add the locale to all queries anymore, we need
to manually ensure that objects aren't shared across locales.
2010-06-02 18:22:45 -07:00
Jeff Balogh 629da213a2 adding qs.only_translations for dropping other transforms 2010-05-26 15:24:53 -07:00
Jeff Balogh 3cf943fccf give RawQuerySet a __len__ and attach an manager without caching to each model 2010-05-04 22:57:07 -07:00
Fred Wenzel fe34c97b77 Register test-related signal handlers in management calls only (bug 561040) 2010-04-22 19:09:06 +02:00
Fred Wenzel db5afb8445 Clean up URL prefixers for each test (bug 560541). 2010-04-22 10:49:01 +02:00
Jeff Balogh b710cbb1d0 avoid transforms here, for efficiency and because something is broken 2010-04-17 07:53:31 -07:00
Jeff Balogh f729c7868c queryset transform! 2010-04-14 17:23:29 -07:00
Dave Dash f54250081d Should return an empty list, if that's all we're given. 2010-04-12 09:58:42 -07:00
Dave Dash 6a4aa7ff2c A method for manually specifying an order for objects. 2010-04-05 11:27:11 -07:00
Dave Dash 69db7f68e5 Renamed get_absolute_url to get_url_path, but also assigned it in order to maintain compatibility with django.contrib apps. 2010-02-26 10:41:49 -08:00
Jeff Balogh bf56b6acfc add a ManagerBase for our apps to subclass 2010-02-01 15:03:56 -08:00
Jeff Balogh c21e101f7a move caching implementation to caching.base 2010-02-01 11:36:50 -08:00
Jeff Balogh 22ecad2cc0 update multidb to use DATABASE_ROUTERS 2010-01-25 20:49:23 -08:00
Jeff Balogh 6a90d1d3e0 send all read traffic to slave dbs 2010-01-08 13:33:35 -08:00
Jeff Balogh 78ffe3f12e move applications to its own app 2010-01-04 16:43:07 -05:00
Jeff Balogh 5378051d68 application model 2010-01-03 16:12:47 -05:00
Jeff Balogh b0a760a7fd get some get_latest_by love 2009-12-29 17:04:57 -05:00
Jeff Balogh cb9cd654a9 adding caching to zamboni 2009-12-28 17:19:28 -05:00
Dave Dash 5eeee4ea3b Middleware that intercepts the URLs and makes sure we are following our standard URL layout /locale/app/* 2009-12-16 16:21:15 -08:00
Jeff Balogh 6fdb9e3fcc translations app 2009-12-15 10:22:20 -08:00
Jeff Balogh d0bf20a712 rename LegacyModel to ModelBase, add translation support 2009-12-10 13:20:59 -08:00
Jeff Balogh 3514ac694f make translations cache-happy 2009-10-23 10:29:55 -07:00
Jeff Balogh 74808c425d adding an amo compatiblity model and translation helpers 2009-10-21 17:33:00 -07:00