- Dec 08, 2014
-
-
Jared Hancock authored
This allows for things like related COUNTs and such: ```php ThreadEntry::objects()->annotate( 'attachment_count'=>Aggregate::COUNT('attachments') ) ->filter(array('attachments__type__contains'=>'image/')) ->filter(array('attachment_count__gt'=>0)); ``` This would find all thread entries with at least one image attached.
-
Jared Hancock authored
Move the attachments to the sidebar, add the concept of language-specific attachments. Add a sidebar to the front page. De-emphasize the "open new ticket" button. Add a knowledge base search feature to front page and also add the concept of "featured" articles and categories on the front page.
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
Ensure that for a model class name and primary key, there is only one object floating around in PHP runtime. In doing so, ensure that models loaded from the database are not duplicated in memory. Instead, check the cache when creating objects to see if the object has already been loaded. If so, use the loaded model rather than a new instance. This ensures that updates to a model object are reflected consistently. Also, short circuit lookups so that the cached version is retrieved without consulting the database.
-
Jared Hancock authored
For instance join table2 on (field = 'T' and table1.field_id = table2.id)
-
Jared Hancock authored
Implement select_related() for querysets. Now, related models are loaded along with the requested models automatically.
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
Also complete the translation client-side
-
Jared Hancock authored
This reworks the tabs CSS and javascript coding to be more flexible and to support vertical tabs. (Bootstrap calls this stacked.) The javascript also allows the URL to include the hash-tag of the last-clicked tab so that the tab can be automatically shown when the page is reloaded.
-
Jared Hancock authored
Including language-specific attachments
-
Jared Hancock authored
That way, the format can be standardized and the code can be reused among other translatable objects such as the knowledge base.
-
Jared Hancock authored
-
Jared Hancock authored
Store a complex text with title and body combined with ASCII 0x04 byte (field seprator).
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
This will help if the user has "Browser Preference" selected as the preferred language. When email correspondence needs to be sent to the user, the browser_lang extra attribute can be used as a backup to to the user's language preference in the event that the language preference is set to auto (Browser Preference).
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
to indicate the primary language expected for translatable content
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
-
Jared Hancock authored
Drafts 2.0 — Draft system revisited
-
Jared Hancock authored
-
Jared Hancock authored
The solution is simple: upload the image, create the draft automatically, attach the image to the draft, return the draft_id to the client. That's it. There's no more need to create the draft in advance now.
-