Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* bugfix in post admin

* rename updated_datetime
  • Loading branch information...
commit 608aaefb1a1c8b6de97b3d7224a9d11dcfc626a3 1 parent 7948a92
@jedie authored
View
2  django_phpBB3/admin.py
@@ -71,7 +71,7 @@ def poster_username(self, obj):
return obj.poster.username
poster_username.short_description = "username"
- list_display = ('id', "poster_username", "has_attachment", "datetime", "teaser")
+ list_display = ('id', "poster_username", "has_attachment", "create_datetime", "update_datetime", "teaser")
list_filter = ("forum", "poster")
search_fields = ("text",)
admin.site.register(Post, PostAdmin)
View
2  django_phpBB3/management/commands/phpbb2djangobb.py
@@ -317,7 +317,7 @@ def migrate_posts(self, user_dict, topic_dict, last_post_dict):
user=user,
defaults={
"created": phpbb_post.create_datetime(),
- "updated":phpbb_post.updated_datetime(),
+ "updated":phpbb_post.update_datetime(),
"updated_by": updated_by,
"markup": "bbcode",
"body": phpbb_post.text,
View
2  django_phpBB3/models.py
@@ -674,7 +674,7 @@ class Post(models.Model):
def create_datetime(self):
# FIXME: UTC or local time from user???
return datetime.datetime.fromtimestamp(self.time)
- def updated_datetime(self):
+ def update_datetime(self):
# FIXME: UTC or local time from user???
return datetime.datetime.fromtimestamp(self.edit_time)
Please sign in to comment.
Something went wrong with that request. Please try again.