diff --git a/apps/assets/forms.py b/apps/assets/forms.py
index 62460146e..09fcc9a24 100644
--- a/apps/assets/forms.py
+++ b/apps/assets/forms.py
@@ -24,12 +24,10 @@ from common.utils import validate_ssh_private_key, ssh_pubkey_gen
#
class AssetCreateForm(forms.ModelForm):
-
def __init__(self, *args, **kwargs):
instance = kwargs.get('instance', None)
if instance:
initial = kwargs.get('initial', {})
- #tags = instance.tags.all()
initial['tags'] = [t.pk for t in kwargs['instance'].tags.all()]
super(AssetCreateForm, self).__init__(*args, **kwargs)
diff --git a/apps/assets/serializers.py b/apps/assets/serializers.py
index be4183619..86acbff37 100644
--- a/apps/assets/serializers.py
+++ b/apps/assets/serializers.py
@@ -8,7 +8,7 @@ from rest_framework_bulk import BulkListSerializer, BulkSerializerMixin
class AssetGroupSerializer(serializers.ModelSerializer):
assets_amount = serializers.SerializerMethodField()
- assets = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
+ # assets = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
class Meta:
model = AssetGroup
diff --git a/apps/assets/templates/assets/asset_group_create.html b/apps/assets/templates/assets/asset_group_create.html
index f1df67d53..f2dbfd3ee 100644
--- a/apps/assets/templates/assets/asset_group_create.html
+++ b/apps/assets/templates/assets/asset_group_create.html
@@ -5,13 +5,6 @@
{% block custom_head_css_js %}
-
{% endblock %}
{% block content %}
@@ -94,7 +87,7 @@ div.dataTables_wrapper div.dataTables_filter,
$(document).ready(function () {
$('.select2').select2();
$('.select2-system-user').select2();
- })
+ });
$('#add_asset').on('click',function(){
$('#modal').modal('show');
@@ -104,7 +97,7 @@ div.dataTables_wrapper div.dataTables_filter,
show: false,
backdrop: 'static',
keyboard: 'false',
- remote:"{% url 'assets:asset-modal-list' %}?group_id={{ group_id }}",
+ remote:"{% url 'assets:asset-modal-list' %}?group_id={{ group_id }}"
});
$('#modal').on('show.bs.modal',function(){
diff --git a/apps/assets/templates/assets/asset_modal_list.html b/apps/assets/templates/assets/asset_modal_list.html
index f408149f5..c24452c0e 100644
--- a/apps/assets/templates/assets/asset_modal_list.html
+++ b/apps/assets/templates/assets/asset_modal_list.html
@@ -46,9 +46,7 @@
+{% endblock %}
+{% block content %}
+
+
+
+
+
+
+
+
+
+
{% trans 'Asset permission of ' %} {{ user_group.name }}
+
+
+
+
+
+
+
+
+ {% trans 'Quick create permission for user group' %}
+
+
+
+
+
+
+
+
+
+
+{% endblock %}
+{% block custom_foot_js %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/apps/users/templates/users/user_group_create.html b/apps/users/templates/users/user_group_create_update.html
similarity index 78%
rename from apps/users/templates/users/user_group_create.html
rename to apps/users/templates/users/user_group_create_update.html
index 2cc835ee4..abb18a239 100644
--- a/apps/users/templates/users/user_group_create.html
+++ b/apps/users/templates/users/user_group_create_update.html
@@ -19,20 +19,21 @@