Added voucher creation date display in voucher edit view.
This commit is contained in:
		| @@ -18,7 +18,11 @@ class ExplorerAdmin(UserAdmin): | ||||
|     model = Explorer | ||||
|     list_display = ['email', 'username',] | ||||
|  | ||||
| class VoucherAdmin(admin.ModelAdmin): | ||||
|     fields = ['code', 'expires', 'created'] | ||||
|     readonly_fields = ['created'] | ||||
|  | ||||
| admin.site.register(Explorer, ExplorerAdmin) | ||||
| admin.site.register(Voucher) | ||||
| admin.site.register(Voucher, VoucherAdmin) | ||||
| admin.site.register(Place) | ||||
| admin.site.register(PlaceImage) | ||||
|   | ||||
| @@ -26,7 +26,7 @@ class Voucher(models.Model): | ||||
|     """ | ||||
|     Vouchers are authorization tokens to allow the registration of new users. | ||||
|     A voucher has a code, a creation and a deletion date, which are all positional. | ||||
|     Creation date is being set automatically during voucher creation. | ||||
|     Creation date is being set automatically during voucher creation.  | ||||
|     """ | ||||
|  | ||||
|     code = models.CharField(unique=True, max_length=10) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user