Closed Bug 1119772 Opened 11 years ago Closed 11 years ago

Remove auto_now_add and auto_now from FeaturedRep.

Categories

(Mozilla Reps Graveyard :: reps.mozilla.org, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tasos, Assigned: tasos)

Details

(Whiteboard: [kb=1625379] )

The featuredrep app is using 'auto_now_add' and 'auto_now' to auto-populate a couple of DateTimeField fields. Since we need the ability to edit these fields through the /admin interface, we need to replace these settings.
Whiteboard: [kb=1625379]
Commits pushed to master at https://github.com/mozilla/remo https://github.com/mozilla/remo/commit/0974cd970343399a88a37e75587319bf6cd849a3 [fix bug 1119772] Remove 'auto_now_add' and 'auto_now' from featuredrep. https://github.com/mozilla/remo/commit/a34db57516c783c95dff550d43d45cd890b90418 Merge pull request #902 from akatsoulas/1119772-featured-admin [fix bug 1119772] Remove 'auto_now_add' and 'auto_now' from featuredrep.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Version: unspecified → next
Verified on stage that when editing through the admin interface a ROTM entry, a user can either select a custom date for the 'updated_on' field or leave the field empty. In the later case the field is auto-populated with the current date. When a user creates a new entry either through the admin or the portal both fields are successfully auto-populated with the current date.
Status: RESOLVED → VERIFIED
OS: Linux → All
Hardware: x86_64 → All
Version: next → 451
Product: Mozilla Reps → Mozilla Reps Graveyard
You need to log in before you can comment on or make changes to this bug.