Compare commits

..

4 Commits

5 changed files with 23 additions and 2 deletions

View File

@ -1,6 +1,18 @@
Changelog Changelog
========= =========
0.8.2
-----
* Add GASConfig.default_auto_field
* Remove default_app_config
* Add admin.py file
0.8.1
-----
* Bugfix
0.8 0.8
--- ---

View File

@ -1 +0,0 @@
default_app_config = "gas.apps.GASConfig"

9
gas/admin.py Normal file
View File

@ -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',)

View File

@ -3,6 +3,7 @@ from django.utils.translation import gettext_lazy as _
class GASConfig(AppConfig): class GASConfig(AppConfig):
default_auto_field = 'django.db.models.AutoField'
name = 'gas' name = 'gas'
verbose_name = _('GAS') verbose_name = _('GAS')

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = django-gas name = django-gas
version = 0.8 version = 0.8.2
description = An alternative to django admin description = An alternative to django admin
long_description = file: readme.md, changelog.md, collaborators.md long_description = file: readme.md, changelog.md, collaborators.md
long_description_content_type = text/markdown long_description_content_type = text/markdown