|
|
@@ -61,8 +61,7 @@ class EntrySerializer(serializers.ModelSerializer): |
|
|
|
class PasswordSerializer(serializers.ModelSerializer): |
|
|
|
class Meta: |
|
|
|
model = models.Password |
|
|
|
fields = ('id', 'login', 'site', 'lowercase', 'uppercase', 'symbols', 'numbers', 'counter', 'length', |
|
|
|
'created', 'modified') |
|
|
|
fields = ('id', 'login', 'site', 'options', 'created', 'modified') |
|
|
|
read_only_fields = ('created', 'modified') |
|
|
|
|
|
|
|
def create(self, validated_data): |
|
|
|