Compare commits
4 Commits
6e5ee54b36
...
21fb9a4a8d
Author | SHA1 | Date |
---|---|---|
Ales (Shagi) Zabala Alava | 21fb9a4a8d | |
Ales (Shagi) Zabala Alava | c2d2c3a059 | |
Ales (Shagi) Zabala Alava | 3ef0857127 | |
Ales (Shagi) Zabala Alava | bef22330be |
12
changelog.md
12
changelog.md
|
@ -1,6 +1,18 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
0.8.2
|
||||
-----
|
||||
|
||||
* Add GASConfig.default_auto_field
|
||||
* Remove default_app_config
|
||||
* Add admin.py file
|
||||
|
||||
0.8.1
|
||||
-----
|
||||
|
||||
* Bugfix
|
||||
|
||||
0.8
|
||||
---
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
default_app_config = "gas.apps.GASConfig"
|
|
@ -0,0 +1,9 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from . import models
|
||||
|
||||
|
||||
@admin.register(models.UserRole)
|
||||
class UserRoleAdmin(admin.ModelAdmin):
|
||||
list_display = ('user', 'role')
|
||||
list_filter = ('role',)
|
|
@ -3,6 +3,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
|
||||
|
||||
class GASConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
name = 'gas'
|
||||
verbose_name = _('GAS')
|
||||
|
||||
|
|
Loading…
Reference in New Issue