first commit
[osm/LW-UI.git] / projecthandler / management / commands / delete_project_type.py
diff --git a/projecthandler/management/commands/delete_project_type.py b/projecthandler/management/commands/delete_project_type.py
new file mode 100644 (file)
index 0000000..d750f9f
--- /dev/null
@@ -0,0 +1,14 @@
+from django.core.management.base import BaseCommand, CommandError
+
+
+class Command(BaseCommand):
+    help = 'Delete a project type'
+
+    def handle(self, *args, **options):
+
+            try:
+                print 'delete project type'
+            except Exception:
+                raise CommandError('Error unable to delete a new project type')
+
+            self.stdout.write(self.style.SUCCESS('Project type successfully deleted'))