aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge remote branch 'remotes/gullydwarf-cfdv/f435_limit_prev_next_by_processed'Christopher Allan Webber2011-07-061-2/+4
|\ \ \
| * | | f#435 - avoids linking to unprocessed media in prev and nextCaleb Forbes Davis V2011-07-051-2/+4
| |/ /
* / / slug-style urls in previous and next urls look much betterCaleb Forbes Davis V2011-07-051-2/+2
|/ / | | | | | | Bug #434 - identifies media by slug instead of _id in prev/next
* | Merge remote branch 'remotes/gullydwarf-cfdv/f401_prev_next_media_nav'Christopher Allan Webber2011-07-021-1/+27
|\ \ | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/models.py mediagoblin/templates/mediagoblin/user_pages/media.html
| * | adds previous and next links in the sidebarCaleb Forbes Davis V2011-07-021-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | Feature #401 - previous/next navigation on media pages * media.html includes a new prev_next.html template containing the links * prev_next.html calls functions added to the media model to retrieve the appropriate objects from the database, formatted with urlgen * a small change to util.py brings ASCENDING into the mix
| * | Merge remote branch 'remotes/jwandborg/feature_362-simple_comments'Christopher Allan Webber2011-06-291-3/+43
| |\ \
* | | | Issue #362 - Simple comments - Changes based on feedback recieved from ↵Joar Wandborg2011-07-011-17/+5
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #mediagoblin * `db.models` - Removed `MediaEntry.get_comments()` and replaced it with a helper which just returns a cursor for the comments query * `media.html` - Added `{% set comment_author = comment.author() %}` * `user_pages.views` - media_home() now passes `MediaEntry.get_comments()` directly to `Pagination`, handles pagination for comments. * Added `MEDIA_COMMENTS_PER_PAGE` to define the number of comments per page in the `media_home()` view.
* | | Merge branch 'feature_362-simple_comments'Joar Wandborg2011-06-291-3/+43
|\ \ \ | |/ / |/| / | |/
| * Issue #362 - Updated the MediaComment modelJoar Wandborg2011-06-291-4/+20
| | | | | | | | | | | | | | * `MediaComment.get_comments()` now uses pagination * `MediaComment.get_comments()` now sorts by `created` DESC * `MediaComment.media_entry` is now **required** * `MediaComment.media_entry()` now returns parent `MediaEntry`
| * Issue 362 - Add simple commentsJoar Wandborg2011-06-271-1/+25
| | | | | | | | | | * Added MediaComment database model Holds `media_entry` (`ObjectId`), `author` (`ObjectId`), `created`, `content` and `content_html`.
* | Adding our current indexes and removing the index that was in models.pyChristopher Allan Webber2011-06-271-5/+0
|/
* assigns migration steps to User database objectscfdv2011-06-201-0/+2
| | | | | | adds the migration_handler to the User db class, connecting the migration steps in ../db/migrations.py to the migration code in gmg_commands
* Merge remote-tracking branch 'origin/master' into is315cfdv2011-06-201-1/+2
|\
| * Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblinJoar Wandborg2011-06-151-2/+2
| |\
| * | Added Markdown rendering for `media_entry`Joar Wandborg2011-06-121-1/+2
| | |
* | | baby step towards enabling profile editscfdv2011-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adds * url and bio fields to database * form for editing the user profile * route to the edit profile controller * view for the profile editing page * template for the profile editing page * link to edit profile in the welcome page still needs * thorough inspection to see if it makes sense * tests * ?
* | | adds user bio and website url fields to the databasecfdv2011-06-181-0/+2
| |/ |/|
* | mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-2/+2
|/
* No need for a method for generating the verification key as a methodChristopher Allan Webber2011-06-021-8/+0
| | | | on the class, can just do that in the view
* Merge remote branch 'remotes/aleks/aleks'Christopher Allan Webber2011-05-311-0/+8
|\
| * Added the ability to regenerate a verification key.Aleksandar Micovic2011-05-311-0/+8
| |
* | Add an index on MediaEntries making sure slugs + uploader combos are uniqueChristopher Allan Webber2011-05-301-6/+5
|/
* remove all 'username_repr' stuffJakob Kramer2011-05-291-2/+1
|
* this should fix #354Jakob Kramer2011-05-291-1/+2
|
* Update all the views so that they use the uploader reference insteadChristopher Allan Webber2011-05-221-2/+7
| | | | of uploader embedding
* User migration works (but the rest of the system isn't updated for new user ↵Christopher Allan Webber2011-05-221-1/+5
| | | | setup yet)
* Added a url_for_self method for generating mediaentry linksChristopher Allan Webber2011-05-201-0/+18
| | | | This allows for optionally making the url based off of slugs or ids
* Move models into new db/ directoryElrond2011-05-181-0/+128
The database is a central point of interest/discussion. Represent that by its own directory. This will surely become more interesting when we have migrations for example.