-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rupanshi Jain <[email protected]>
- Loading branch information
Showing
9 changed files
with
119 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 4.0.4 on 2022-04-20 06:28 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
import zezere.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('zezere', '0012_auto_20200323_1130'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='device', | ||
name='mac_address', | ||
field=models.CharField(max_length=20, unique=True, validators=[django.core.validators.RegexValidator('^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$'), zezere.models.validator_disallow_blacklisted_mac], verbose_name='Device MAC Address'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.0.4 on 2022-08-14 06:22 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('zezere', '0013_alter_device_mac_address'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Config', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('auth_token', models.CharField(default='', max_length=255)), | ||
('ov_base_url', models.URLField(default='', max_length=255)), | ||
('owner', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "./master.html" %} | ||
|
||
{% load rules %} | ||
|
||
{% block title %}Add Voucher{% endblock %} | ||
|
||
{% block content %} | ||
|
||
{% if messages %} | ||
{% for message in messages %} | ||
<div{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</div> | ||
{% endfor %} | ||
{% endif %} | ||
|
||
<h3>Your Configuration:</h3> | ||
<form method="POST" action="/portal/configure/"> | ||
{% csrf_token %} | ||
Enter the Authentication token: <br> | ||
<input type="text" name="auth_token" value="{{ auth_token }}" /> <br> <br> | ||
Enter your OV Management Server URL: <br> | ||
<input type="text" name="ov_base_url" value="{{ ov_base_url }}" /> <br> <br> | ||
<input type="submit" class="btn btn-primary btn-sm" value="Done"> <br> | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters