upgrade admin + change date to datetime

main
Laurent 9 months ago
parent 57a56c1ecf
commit 0c69d193e6
  1. 2
      subscriptions/admin.py
  2. 2
      subscriptions/models.py

@ -2,7 +2,7 @@ from django.contrib import admin
from .models import ASSNotification
class ASSNotificationAdmin(admin.ModelAdmin):
list_display = ['notificationType', 'subtype', 'signedDate', 'transactionId', 'price']
list_display = ['notificationType', 'subtype', 'productId', 'transactionId', 'offer_identifier', 'price', 'currency']
search_fields = ['transactionId']
list_filter = ['offer_identifier', 'notificationType', 'subtype']
ordering = ['-signedDate']

@ -5,7 +5,7 @@ class ASSNotification(models.Model):
notificationType = models.CharField(max_length=100)
subtype = models.CharField(max_length=100, null=True, blank=True)
notificationUUID = models.CharField(max_length=100)
signedDate = models.DateField(null=True, blank=True)
signedDate = models.DateTimeField(null=True, blank=True)
productId = models.CharField(max_length=100, null=True, blank=True)

Loading…
Cancel
Save